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

What are the important methods of java exception class?

576


What is the size of integer?

592


Can you explain the usages of class.forname()?

613


Can variables be used in java without initialization?

554


What is the purpose of encapsulation?

545






Give any two differences between C++ and java.

562


Is vector thread safe in java?

565


What is flush () in java?

560


How do you use compareto in java?

566


Explain about abstract classes in java?

591


What is immutable in java?

550


What is the syntax and characteristics of a lambda expression?

563


What is difference between pointer and reference?

511


How many bytes are there?

544


Is math an abstract class in java?

540