suppose string s1="rajnish";
string s2="bhaskar";
then what will be happend ?
Answer Posted / selvan
It shows compile error, bcoz without class how it should be
run? so only coming expection. Declaration And all correct.
| Is This Answer Correct ? | 0 Yes | 3 No |
Post New Answer View All Answers
What is the properties class?
What is the purpose of final keyword and when to use it?
In Java list the methods that can be overridden?
Is java ee a framework?
Can variables be used in java without initialization?
Is java developer a good career?
State some situations where exceptions may arise in java?
What is == and === in javascript?
What is use of super keyword in java?
Explain the use of shift operator in java. Can you give some examples?
What is the difference between Java Program Constructor and Java Program Method, What is the purpose of Java Program constructor Please Explain it Breafily?
Can a class have multiple superclasses?
What is string length in java?
What is an example of a keyword?
What is static in java?