Online GK Series

This site is dedicated to the aspirants of competitive exams SSC, UPSC, Railways, Postal Assistants, Bank, GATE and NET

Q.

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.

Computer Science Books

Your Valuable Comments Please...

Please Like Us
Brand