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 a nullable field?
What are different types of expressions?
What are the differences between throw and throws?
What is difference between word and integer?
What is the use of coding?
Do I need java for windows 10?
How does list work in java?
What are the procedures?
Why vector class is used?
Is arraylist ordered?
Define reflection.
What is public static void main?
Explain the difference between abstract classes and interfaces in java?
What is difference between protected and private?
Why there is no call by reference in java?