1).what is the difference between below examples

String s="vijay";

String s=new String("vijay");

Answer Posted / info_vijaykumar

i got your answer,what are all the two instance in
that?.....

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Where will it be used?

1492


What is the use of volatile in java?

585


Explain naming conventions for packages?

564


Can we write class inside a class in java?

535


How do I enable java in safari?

532






What about method local inner classes or local inner classes in java?

538


What is method reference?

504


What do you mean by jjs in java8?

545


What is regex used for?

528


What is java util hashmap?

500


What is a byte array?

574


What is subsequence of a string?

587


What's the default access specifier for variables and methods of a class?

497


how to create multithreaded program? : Java thread

491


What is the += operator called?

568