1).what is the difference between below examples

String s="vijay";

String s=new String("vijay");

Answer Posted / info_vijaykumar

Thanks a lot Karun....

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Does every java program need a main?

622


Can we use synchronized block for primitives?

700


What is the purpose of nested class in java?

706


What are the three best choices for a development environment?

721


Can we call thread start () twice?

594






When throw keyword is used?

681


Are functions objects in java?

647


Which class contains a method: cloneable or object?

641


How many types of string data types are there?

636


What are some examples of variable costs?

582


Is node a data type in java?

603


What is the difference between procedural and object-oriented programs?

613


Can you start a thread twice in Java?

744


What is struts in java?

689


What is the right data type to represent a price in java?

646