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 class allows you to read objects directly from a stream in java programming?
how to know the total memory occupied by the objects in the ArrayList(Array list may contain duplicate objects)
Why can't you declare a class as protected?
Why declare Main() inside the class in java ?
What an i/o filter?
What are inner classes or non static nested classes in java?
Why local variables are stored in stack?
How do you print array in java?
What is the difference between superclass and subclass?
Is there any difference between nested classes and inner classes?
what state does a thread enter when it terminates its processing? : Java thread
What is the use of a copy constructor?
What is a function in programming?
Is object a data type in java?
Explain reverse a linked list recursive java solution?