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
What is java reflection?
Is list thread safe in java?
Under what conditions is an object’s finalize() method invoked by the garbage collector?
What is a marker interface?
What are the basic interfaces of java collections framework?
Can we use string in switch case in java?
What are the types of methodology?
What is the difference between jfc & wfc?
How to print nodes of a Binary tree?
What is the purpose of extern variable?
What are the different types of collections in java?
How do you pass by reference?
How arrays are stored in memory in java?
What does += mean in java?
Which is better stringbuffer or stringbuilder?