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 |
What is the original name of java?
Why does abstract class have constructor?
What is constant in programming?
what is stringtolennizer with example?
What is a boolean used for?
What’s the difference between applets and standalone program?
Can we write class inside a class in java?
What is the console in java?
What is join () in java?
In which language JVM (Java Virtual Machine) is implemented
State the main difference between c++ and java?
What is default locale java?