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

Which method is used to find that the object is exited or
not?

Answer Posted / ashokmail

we can check the null status of the object for it is
exits or not.

For Example
class java{
public java(){
}
}

class javause{
private java j;
public javause(){
if ( j != null)
j = new java();
}
public static void main(String args[]){
new javause();
}
}

Is This Answer Correct ?    6 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a container in a gui?

968


What is the difference between iterator and list iterator?

1017


What is methods and methodology?

1010


Variables used in a switch statement can be used with which datatypes?

982


Why do we need singleton?

951


What is java util hashmap?

967


What is the biggest integer?

1033


What is meant by attribute?

1092


What is the difference between inheritance and encapsulation?

1129


What is the benefit of using enum to declare a constant?

1086


Can you start a thread twice in Java?

1100


What is lambda in java?

1046


What is the synonym of framework?

986


What is singleton class in ruby?

995


Why can we not override static method?

1096