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


Please Help Members By Posting Answers For Below Questions

What does g mean in regex?

536


What is unicode in java?

484


What is communist flag?

550


What is the Concept of Encapsulation in OOPS

535


What is the default size of arraylist in java?

482






Write a regular expression to validate a password. A password must start with an alphabet and followed by alphanumeric characters; its length must be in between 8 to 20.

570


What is the difference between hashmap and hashtable in java?

540


Can I override protected method in java?

571


What is immutable in java?

519


What will happen when using pass by reference in java?

497


How do you compare characters in java?

495


What is the final keyword in java?

529


Is void a keyword in java?

565


Explain the difference between a Thread and a Process.

540


Explain about transient variables in java?

622