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
Why is flag used in java?
What is the difference between processes and threads?
Does java arraylist maintain insertion order?
Can we have two main methods in a java class?
What is the synonym of string?
What is variable argument in java?
How do I write a self declaration?
What is static data type in java?
what is the significance of listiterator in java?
What is the difference between an interface and an abstract class?
How to display all the prime numbers between 1 and 100
Why is core java important?
Why are the methods of the math class static?
What is autoboxing and unboxing?
How many unicode characters are there?