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 are commas used in the initialization and iteration parts of a for statement?
Does java have extension methods?
What is the range of the short type?
What is difference between variable declaration and definition?
Can a class be defined inside an interface?
Explain the overview of UDP messaging.
What is file in java?
Can we add default constructor to Servlet?
What is the access scope of a protected method?
How many bits is a 64 bit byte?
What are the advantages of user defined functions?
Is java hard to learn?