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 is the point of polymorphism java?

542


What is the difference between the jdk 1.02 event model and the event-delegation model introduced with jdk 1.1?

611


What is keyword auto for?

637


Why do we declare a class static?

544


What is the technique adopted to create an immutable class?

522






What is type inference in java8?

576


What is the Concept of Encapsulation in OOPS

556


Difference between keyword and identifier.

591


What is a java string?

539


Can we convert list to set in java?

510


Why declare Main() method as a static in java ?

593


What is the difference between an array and an array list?

500


What is the size of arraylist in java?

606


Which is a valid identifier?

544


What are the two types of java programming?

533