1.

Which of these methods of Byte wrapper can be used to obtain Byte object from a string?(a) toString()(b) getString()(c) decode()(d) encode()The question was asked at a job interview.My question is based upon Java.lang in chapter Exploring java.lang & java.io of Java

Answer»

Right option is (c) DECODE()

Explanation: decode() methods returns a Byte OBJECT that CONTAINS the value SPECIFIED by string.



Discussion

No Comment Found

Related InterviewSolutions