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...

Why java is free from garbage values??

Answer Posted / mihirdash

first take an example of c/c++,here the decaration and initialization is the programmer responsibility if not it gives the garbage value.but in java every thing is taken by jvm.we can declare any number of variable but it should be initialized.otherwise if we are going to use the uninitialized varibles the java compiler gives error.so there is no garbage value in java.
and if youu are created a object the keyword new is assigned default value during crreation of object

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between serializable and externalizable interface?

1161


What is anti pattern in java?

1027


What is the difference between assignment and initialization?

1091


What is difference between hashset and hashmap in java?

1064


What is the primitive type byte?

1036


What are the principle concepts of oops?

1009


What are identifiers in java?

1185


Why is it called buffering?

1180


What is the use of a conditional inclusion statement in Java ?

1130


What is sizeof () operator?

1024


Can you give few examples of final classes defined in java api?

1049


How to create a base64 decoder in java8?

1098


What is difference between == equals () and compareto () method?

1094


How thread scheduler schedule the task?

1095


Why do we use variables?

1039