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

Answers were Sorted based on User's Feedback



Why java is free from garbage values??..

Answer / harsh singh

In java we have garbage collector , which is call by JVM in equal interval of time and remove garbage values or variables.

Is This Answer Correct ?    20 Yes 4 No

Why java is free from garbage values??..

Answer / 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

Why java is free from garbage values??..

Answer / mihirdash

Because in java all declare variables are known to programmer.other wise it create some logical error.let us take an example of c++/c language if declare 100 variable it is so difficult to remember which will i initialise and it will effect my output result .so,that there is no garbage values
in java.

Is This Answer Correct ?    10 Yes 9 No

Why java is free from garbage values??..

Answer / mamitha

In Java, Based on OOPS concepts,By default garbage collection ll happens. The main disadvantage in C & C++ is garbage values. So, its removed in Java

Is This Answer Correct ?    1 Yes 3 No

Post New Answer

More Core Java Interview Questions

How to perform selection sort in java?

0 Answers  


What is a treemap in java?

0 Answers  


Write a function for palindrome and factorial and explain?

0 Answers   Honeywell, Huawei, Zomato,


What is string [] args?

0 Answers  


What are locale settings?

0 Answers  


Is alive and join method in java?

0 Answers  


What is collection class in java? List down its methods and interfaces.

0 Answers  


What is a bubble sort in java?

0 Answers  


What is getkey () in java?

0 Answers  


What is initial size of arraylist in java?

0 Answers  


If I only change the return type, does the method become overloaded?

0 Answers  


What is java console application?

0 Answers  


Categories