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

C and C++ has constructors and distructors, why does Java
does not have distructors?

Answer Posted / sandesh magdum

Because java has automatic garbage collection feature and java
does not let you illegally or accidentally release memory
occupied by an object.

Is This Answer Correct ?    7 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Assume a thread has lock on it, calling sleep() method on that thread will release the lock?

1158


Why do we need data serialization?

1040


What is linkedlist in java?

1051


What does indexof return in java?

1046


Explain the public class modifier?

996


What is null statement?

1069


When do we use hashset over treeset?

1101


What are white spaces in java?

1122


What is meant by object?

1057


How is treeset implemented in java?

1084


Make a data structure and implement an algorithm to print all the files in a directory. (The root directory can have sub-directories too.)

1378


Is ++ operator is thread safe in java?

1003


Why string is called as immutable?

1008


Is a method a function?

1097


What is the static import?

1151