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

Which is better ascii or unicode?

551


What is one third plus one third as a fraction?

470


I want to re-reach and use an object once it has been garbage collected. How it's possible?

525


What will be the initial value of an object reference which is defined as an instance variable?

618


Is static variable stored in heap?

489






What is a file pointer?

504


What exceptions occur during serialization?

593


What is starvation?

669


Explain about map interface in java?

579


Explain about the main() method in java?

555


Explain numeric promotion?

584


I want to print “hello” even before main is executed. How will you acheive that?

640


What are bind parameters?

531


What are the differences between abstract class and interface?

497


Can we call virtual funciton in a constructor ?

1758