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 to print a numbers from 1 to 100 with out using control structures?
What are the features in java?
What is the difference between the boolean & operator and the && operator in java programming?
how to compile jsp?
How do you relate a Interface to a Class? Tell me in Detail?
What is close method? How it's different from Finalize & Dispose?
0 Answers InfoAxon Technologies,
Define packages in java?
List some java keywords sun like c, c + + keywords?
What are the differences between c++ and java?
Tell me the difference between an applet and a Japplet?
can we take more than one null values for Unique constraints.
Explain different states of a thread in java?