which one is more efficient
int x;
1. if(x==null)
2.if(null==x)
state which one either 1 or 2?
Answer Posted / sandeep
x is a int,a primitive. it can never be null
| Is This Answer Correct ? | 9 Yes | 3 No |
Post New Answer View All Answers
What is boolean keyword in java?
Which sort is best in java?
How many types of variables are there?
Explain inner classes ?
What are the different types of java?
What causes memory leaks in java?
What is a line break?
How hashmap works in java?
How do listeners work?
What is annotation in java?
What is the disadvantage of synchronization?
Give an example of use of pointers in java class.
What is a numeric string?
Is java util list serializable?
What is difference between overloading and overriding in java?