Which method is used to find that the object is exited or
not?
Answers were Sorted based on User's Feedback
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 |
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 |
Can we use both this () and super () in a constructor?
Explain the importance of finally over return statement?
5 Coding best practices you learned in java?
Why use string handling in Java?
What is the difference between synchronized and synchronized block?
what is the use of finalize()Method please explain with an example
What is a method signature java?
Life Cycle of Thread
What is a classloader in java?
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 ?
what is the use of reference variable