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

What is return type in java?

0 Answers  


explain the life cycle of thread?

10 Answers   CTS, NIIT, TCS,


what is the difference between HashMap And HashTable?

5 Answers   Hexaware,


What are thread groups?

0 Answers  


Difference between Reader/Writer and InputStream/Output Stream?

9 Answers   Adobe, Kirusa, Verizon,






how can u create the object with out new operator

2 Answers  


Can we create object of static class?

0 Answers  


What is the difference between Checked and Unchecked exception? Give some examples

2 Answers   Ness Technologies,


Can we overload final method in java?

0 Answers  


Sample code to retrieve objects from HashMap in sorted ascending order?

2 Answers  


Why string is a class?

0 Answers  


How do you define a variable?

0 Answers  


Categories