Join our Telegram Channel

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
Advertisement

Miscellaneous GK Questions

Today's Top Current Affairs

current affairs 2022 pdf plan

Current Affairs MCQs

State-wise Current Affairs

General Knowledge

Month-wise Current Affairs 2022

Category-wise Current Affairs

Jobs by Qualification

Free Mock Test