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 is the preferred size of a component?
What are the differences between heap and stack memory?
What is garbage collection? Can it be forced to run?
Explain thread in java?
Does printwriter create a file?
When should we create our own custom exception classes?
Can we use a default constructor of a class even if an explicit constructor is defined?
What is boolean flag in java?
How many unicode characters are there?
I want to run a simple hello world java (HelloWorld.java) program using a batch file. How can i run it and how to construct a batch file.
what is the use of custom tags? with example?
What is the arguement of main method?