Basic Datatypes
- Which of these is a wrapper for simple data type char?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
Character
- Which of these is a super class of wrappers Long, Character & Integer?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: A
Number is an abstract class containing subclasses Double, Float, Byte, Short, Integer and Long.
- Which of these is a wrapper for data type int?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
Integer
- Which of these is a wrapper for simple data type float?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: B
float
- How to get UTC time?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
In java 8, Instant.now() provides current time in UTC/GMT.