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?

Answers were Sorted based on User's Feedback



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

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

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

Answer / kureshi salman rafik

equals() method is used to find that the object is exited
or
not.

Is This Answer Correct ?    2 Yes 1 No

Post New Answer

More Core Java Interview Questions

Can we use both this () and super () in a constructor?

0 Answers  


Explain the importance of finally over return statement?

0 Answers  


5 Coding best practices you learned in java?

0 Answers  


Why use string handling in Java?

0 Answers   HCL,


What is the difference between synchronized and synchronized block?

0 Answers  


what is the use of finalize()Method please explain with an example

3 Answers  


What is a method signature java?

0 Answers  


Life Cycle of Thread

4 Answers   IBM,


What is a classloader in java?

0 Answers  


what is the difference between static class and singleton class? can we create static class?

2 Answers   L&T, Octazen, Vamsi Labs,


What is the use of anonymous inner classes ?

12 Answers   DELL, HCL,


what is the use of reference variable

6 Answers  


Categories