String

Q1: Which of the following statements about a String is correct?

A A String is created on the stack.

B Whether a String is created on the stack or the heap depends on the length of the String.

C A String is a primitive.

D A String can be created by using the statement String s1 = new String;

E A String is created on the heap.

ANS:E - A String is created on the heap.

No answer description is available. Let's discuss.



img not found
img

For help Students Orientation
Mcqs Questions

One stop destination for examination, preparation, recruitment, and more. Specially designed online test to solve all your preparation worries. Go wherever you want to and practice whenever you want, using the online test platform.