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

What is difference between next () and nextline () in java?

542


What does sizeof return?

563


What is bitwise complement?

503


Explain working of call by reference function invoking.

594


can any body body expalin best definitions & best real time exaples for opps concepts.

1843






Why is stringbuffer thread safe?

572


explain multi-threading in java?

562


Is void a keyword in java?

600


What is the purpose of stub and skeleton?

549


Can you call one constructor from another if a class has multiple constructors?

590


What is a file pointer?

516


What is the primitive type byte?

587


What is the use of singleton class?

525


How many ways can an argument be passed to a subroutine and explain them?

585


Define how destructors are defined in java?

594