Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

1).what is the difference between below examples

String s="vijay";

String s=new String("vijay");

Answer Posted / p.sreekiran

in first string class it create in heep memory and second
is created object in constant memeory we cannot change the
second one

Is This Answer Correct ?    2 Yes 13 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain about interrupt() method of thread class ?

1126


What is comparator in java?

1001


How many characters is 16 bytes?

1001


What is the use of default method in interface in java? Explain

1006


Is arraylist sorted in java?

1006


Can you explain inner class.

1089


What is a modifier?

1520


What state is a thread in when it is executing?

963


how to create multithreaded program? Explain different ways of using thread? When a thread is created and started, what is its initial state? Or extending thread class or implementing runnable interface. Which is better? : Java thread

1034


Can you use this() and super() both in a constructor?

987


What is difference between array and arraylist in java?

993


Do I need to import java.lang package any time? Why?

1388


Can we declare the static variables and methods in an abstract class?

990


How do I enable java in safari?

1037


Is array passed by reference in java?

1028