which one is more efficient
int x;
1. if(x==null)
2.if(null==x)
state which one either 1 or 2?
Answer Posted / kishore
1.if (x==null) is correct answer.
| Is This Answer Correct ? | 5 Yes | 6 No |
Post New Answer View All Answers
What is the lifetime and scope of a variable?
What will happen when using pass by reference in java?
What is void keyword?
What is the purpose of static methods and variables?
Name some OOPS Concepts in Java?
How does a cookie work in Servlets?
What is backdrop?
What are the difference between composition and inheritance in java?
What is jpa specification?
What is meant by class loader? How many types are there? When will we use them?
Can we override a variable in java?
How do you use compareto?
Is the milky way in a void?
How arrays are stored in memory in java?
What is canonical name in java?