Data Types and Variables - Multiple Choice Questions with Answers on Core Java
Questions
11
Which one does not have a valueOf(String) method?
Answer: Option [D]
Java Data Type Short does not have a ValueOf(String) method. The other data types Integer, Boolean, Long, Char, Float, Double have support for the ValueOf(String) method.
12
Which of the following is NOT an example of a data type?
Answer: Option [B]
public is not a data type. It is a Java Access modifier. The other Access modifiers are private and protected.
⭐ Make GKSeries Your Preferred Source on Google
Add GKSeries as Preferred Source
13
Int, long, byte, short are the data types of _____data types?
Answer: Option [B]
15
Which of the following is the mutable wrapper class?
Answer: Option [B]
Java wrapper classes are immutable. BiInteger are mutable.