suppose string s1="rajnish";
string s2="bhaskar";
then what will be happend ?
Answer Posted / tck
It shows the systex error,The String is the final class in
java the syntax for string class is
String s1="rajinesh";
String s2="bhaskar";
so we have to declare the string variables like this .
Is This Answer Correct ? | 8 Yes | 3 No |
Post New Answer View All Answers
Can we define private and protected modifiers for the members in interfaces?
What are the rules for naming an array?
What happens if main method is not static?
What is int argc char * argv?
Where to store local variables?
What does += mean in java?
How are destructors defined in java?
What are the two ways of implementing multi-threading in java?
What does opcode mean?
What do you understand by classes in java?
What is a local class in java?
explain copyonwritearraylist and when do we use copyonwritearraylist?
Can we define a package statement after the import statement in java?
What is the use of callablestatement?
What is difference between float and double?