1).what is the difference between below examples

String s="vijay";

String s=new String("vijay");

Answer Posted / susrhee kanta

am unable to get constant pool and non constant pool?

can you please explain it and send it to my id.

sushreekp@gmail.com

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can singleton class be inherited in java?

509


How can we access some class in another class in java?

535


What is ide with example?

536


Differentiate between stringbuffer and stringbuilder in java.

546


How many ways can you break a singleton class in java?

477






Why convert an applet to an application?

607


What is try-with-resources in java?

601


What is an interface in java? Explain

563


What is the difference between actual and formal parameters?

499


What is command line used for?

575


When do I need to use reflection feature in java?

616


Differentiate jar and war files?

578


What is the difference between the file and randomaccessfile classes?

520


How many types of methods are there?

537


What are different data structures in java?

522