Menu
Question Index
...

Which of the following initialization is correct?


String str = 'Hai hello how are you';
String str;
str = "Hai hello how are you";
String str = Hai hello how are you;
String str;
str = 'Hai hello how are you';

Doubts

Problems

Topic: String Literal In Java

Read this topic
Take test on this topic

0
Wrong
Score more than 2 points

© meritcampus 2019

All Rights Reserved.

Open In App