A Admin • 828.03K Points Coach Q. Which of the following creates a string in Java? (A) String s = 'hello'; (B) String s = "hello"; (C) String s = new char[5]; (D) String s = new String('hello'); Correct Answer - Option(B) Views: 10 Filed under category Java Hashtags: Java Strings Share Manage Tags
Discusssion
Login to discuss.