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 do you mean by JVM?
What is multithreading in java?
1.IN CASE OF DYNAMIC METHOD DISPATCH WHY WE USE REFERENCE VARIABLE,WE CAN USE THE DIFFERENT DEFINED OBJECT DIRECTLY TO ACCESS THE DATA MEMBER AND MEMBER FUNCTION OF THAT RESPECTIVE CLASS?WHAT IS THE MAIN FUNCTION OF "REFERENCE VARIABLE" HERE?
If we don’t want some of the fields not to serialize how to do that?
What is assembly language?
Explain the init method?
How can constructor chaining be done by using the super keyword?
What is "this" keyword in java? Explain
What isan abstract class and when do you use it?
What are identifiers in java?
What is not thread safe?
List primitive java types?
What do you mean by a JVM?
Explain different types of thread priorities ?
What happens when a thrown exception is not handled?