Join our Telegram Channel

1000 POLITICAL SCIENCE MCQS | EBook
Get 22 nos. GK EBooks | Combo Pack
Current Affairs Monthly Magazine -Subscribe Now!
1000 BIOLOGY MCQS AND ANSWERS | EBook
1000 ECONOMICS MCQS FOR EXAMS | EBook
Mughal Empire MCQs | EBook
ECONOMIC GEOGRAPHY MCQs | EBook
350 MCQs ON INDIAN CONSTITUTION | EBook
GENERAL AWARENESS COMBO (6 EBOOKS)

Question

Which one does not have a valueOf(String) method?

A Integer
B Boolean
C Long
D Short
Answer & Explanation
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.

Advertisement

Month-wise Current Affairs 2022

Category-wise Current Affairs

Jobs by Qualification

Free Mock Test