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 null in java?
Why we used break and continue statement in java?
Is a boolean variable?
What are class types in java?
What does the “static” keyword mean? Can you override private or static method in java?
What is thread life cycle in java?
Can you extend singleton class?
What is java virtual machine and how it is considered in context of java’s platform independent feature?
What does += mean coding?
What exactly is methodology?
What are the major advantages of internal iteration over external iteration?
What are the differences between include directive and include action?
How to call one constructor from the other constructor ?
What are the important features of Java 8 release?
How can constructor chaining be done using this keyword?