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

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

563


Is string is a data type in java?

595


Why do we need autoboxing in java?

523


Which is better list or arraylist in java?

499


what methods would you overwrite in java.lang.object class?

572






What are design patterns and please explain?

576


Explain what is encapsulation?

614


What is string builder in java?

560


What is synchronization and why is it important in java programming?

473


Can a source file contain more than one class declaration?

521


What is lambda in java?

524


Which way a developer should use for creating thread, i.e. Sub classing thread or implementing runnable.

524


What do you mean by collectors in java 8?

546


What is a singleton in genetics?

572


What do you mean by object?

552