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

Why parameters should be passed by reference?

972


Explain how to convert any java object into byte array.

980


What is :: operator in java?

978


Explain what access modifiers can be used for methods?

1088


Does variable declaration allocate memory?

1049


Can we declare a class as abstract without having any abstract method?

1001


Can we extend singleton class in java?

968


What are the two environment variables that must be set in order to run any java programs?

967


When should a function throw an exception?

1052


what is difference between equals and ==?

1065


Why is multithreading important?

948


How can you read content from file in java?

1006


What is a values collection view ?

1092


Why can't we use static class instead of singleton?

950


What are thread safe functions?

952