which one is more efficient
int x;
1. if(x==null)
2.if(null==x)
state which one either 1 or 2?
Answer Posted / priyanka
2. if(null==x) is correct
| Is This Answer Correct ? | 3 Yes | 3 No |
Post New Answer View All Answers
What is final method in java?
What is a functional interface?
Program to Find the second largest element in an array.
What are the basic control structures?
How do you sort objects in java?
Variable of the boolean type is automatically initialized as?
What is the equal sign?
Why do we create public static method in java?
What are conditionals and its types?
Why are functions called methods in java?
What is a superclass?
What is a method type?
What is difference between static and final?
What does those terms actually mean included in the j.d.k i.6?
What is the purpose of declaring a variable as final?