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

Is there any limitation of using inheritance?

788


can used Protected Class outside Function.?

814


How many bytes is a string in java?

709


Why is string builder not thread safe?

819


What is a line break?

785


What are the various access specifiers in java?

742


Why java is made?

749


How can we create a synchronized collection from given collection?

834


What is volatile data type?

728


What does 3 dots mean in java?

731


How does map works in java?

729


What is bubble sorting in java?

795


What is the use of jtable?

844


Why is sizeof not a function?

757


what do you understand by synchronization? Or what is synchronization and why is it important? Or describe synchronization in respect to multithreading? Or what is synchronization? : Java thread

689