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 are the three parts of a lambda expression?

1067


Why is java called the platform independent programming language?

1067


What are the features of junit?

1098


What are measurable parameters?

1141


What is collection class in java?

1060


Are true and false keywords?

1075


What is integer valueof?

1170


Explain 5 io best practices?

1091


Explain differences between collection api and stream api?

1247


Explain exception chaining in java?

1230


How do you compare two objects?

1000


Is null false in java?

1240


What is method overloading and method overriding?

1113


which class is the wait() method defined in? : Java thread

1001


What is protected access modifier?

1053