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 |
What are virtual methods?
What is the difference between method and constructor ?
What is Servlet?
Name the types of 'priority'?
What is the difference between multiple processes and multiple threads?
A non-static inner class may have object instances that are associated with instances of the class’s outer class. A static inner class does not have any object instances.
Explain static nested classes ?
Can a final variable be null?
What are the two environment variables that must be set in order to run any java programs?
Explain the importance of import keyword in java?
Adapter classes?
What is a instance variable in java?