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 method with example?
Explain throw keyword in java?
Is null an object in java?
Difference between arraylist and hashset in java?
Does importing a package imports its sub-packages as well in java?
Explain access modifiers in java.
Implement a stack with push (), pop() and min() in O(1) time.
What is a programming object?
How do you use compareto in java?
What do you understand by classes in java?
What is the difference between array list and vector in java?
Explain the access modifiers for a class, method and variables?
What is the independent variable in an experiment?
What is the benefit of abstract class?
What does snprintf return?