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 |
how do you store phone numbers using java collections
Under what circumstances an object reference be cast to an interface reference?
Can an unreachable object become reachable again?
Can you explain inner class.
Can you use abstract and final both with a method?
what is custom tags with example?
What are constants and how to create constants in java?
Is a class subclass of itself?
What is the difference amongst jvm spec, jvm implementation, jvm runtime ?
what do you understand by synchronization? : Java thread
Explain different states of a thread in java?
What is early binding and late binding in java?