which one is more efficient
int x;
1. if(x==null)
2.if(null==x)
state which one either 1 or 2?
Answers were Sorted based on User's Feedback
Answer / person
neither... they wouldn't compile without explicit Integer cast.
Is This Answer Correct ? | 2 Yes | 0 No |
Answer / santosh
if the value is null how can we compare it always (x==null)correct
Is This Answer Correct ? | 2 Yes | 4 No |
Which method will get invoked first in a stand alone application?
What is data type in java?
Explain final, finalize() and finally?
What is Servlet?
Considering notepad/ie or any other thing as process, what will happen if you start notepad or ie 3 times? Where 3 processes are started or 3 threads are started?
What do you mean by ternary operator in java?
what is the diff between Servletcontext and servletconfig?
Write a program to find the greatest of three numbers in java?
What is hashing principle in java?
What do you understand by final value?
How many types of gc are there in java?
What is ide with example?