LogoLearning For Everyone
Take Quiz
Contact Us
Related Topics
Related Topics
Selected Topic: All
4. Which of these occupy first 0 to 127 in Unicode character set used for characters in Java?
Choose the correct option:
  • a) ASCII

  • b) ISO-LATIN-1

  • c) None of the mentioned

  • d) ASCII and ISO-LATIN1

First 0 to 127 character set in Unicode are same as those of ISO-LATIN-1 and ASCII.

2. Can we create an instance of Enum outside of Enum itself?
Choose the correct option:
  • a) True

  • b) False

No, instances of Enum cannot be created outside of Enum boundary, because Enum does not have a public constructor.

4. What is the base of BigDecimal data type?
Choose the correct option:
  • a) Base 2

  • b) Base 8

  • c) Base 10

  • d) Base e

A BigDecimal is n*10^scale where n is an arbitrary large signed integer. Scale can be thought of as the number of digits to move the decimal point to left or right.

4. Is SimpleDateFormat thread safe?
Choose the correct option:
  • a) True

  • b) False

SimpleDateFormat is not thread safe. In the multithreaded environment, we need to manage threads explicitly.

7. How is Date stored in database?
Choose the correct option:
  • a) java.sql.Date

  • b) java.util.Date

  • c) java.sql.DateTime

  • d) java.util.DateTime

java.sql.Date is the datatype of Date stored in database.

Items per page: