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 rule of accessibility in java?

1028


How many types of literals are there in JAVA?

1047


What is a stringbuilder?

918


What are loops in java?

1273


How do you compare arrays in java?

952


Can a class be a super class and a sub-class at the same time? Give example.

1566


What lambda means?

1005


What is the difference between length and length () in java?

945


How would you convert bytes to string?

988


Tell me are there implementations for sorting and searching in the java libarary?

1037


What is jdbc api?

1009


What is meant by 'Class access modifiers'?

1048


what is synchronization and why is it important? : Java thread

1093


Why is java multithreaded?

992


Is main a function?

1058