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
Are arrays immutable in java?
How does callback work in java?
Write a factorial program using recursion in java?
What is default locale java?
How do you sort arrays in java?
What is the difference between array and array list in java?
What is stream api in java8?
explain copyonwritearraylist and when do we use copyonwritearraylist?
Can java arraylist hold different types?
What is variable and its types?
Can we overload final method in java?
What is constant in programming?
What is array initialization in java?
How to set the permissions to a file in java?
Where is stringbuffer stored?