Miscellaneous In Java - Study Mode

[#56] String in Java is a?
Correct Answer

(A) class

[#57] Which of this method is given parameter via command line arguments?
Correct Answer

(A) main()

[#58] Which of these method of String class can be used to test to strings for equality?
Correct Answer

(D) equals()

[#59] Which of these is a correct statement about args in the following line of code? public static void main(String args[])
Correct Answer

(C) args is an array of String

[#60] Which of these method of String class is used to obtain character at specified index?
Correct Answer

(D) charAt()