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
How to perform merge sort in java?
What is the difference between public, private, protected, and friend access?
What is the formula to calculate percentage?
Which is better list or arraylist in java?
What are controls and their different types in awt?
What data type is a string?
What are JVM.JRE, J2EE, JNI?
Explain the JDB in depth & command line.
How can we use primitive data types as objects?
Why do you canvas?
What is data type modifier?
When would you use a static class?
What is the concept of multithreading?
What are the different types of collections in java?
Which sorting is best in java?