which one is more efficient
int x;
1. if(x==null)
2.if(null==x)
state which one either 1 or 2?
Answer Posted / santosh
if the value is null how can we compare it always (x==null)correct
| Is This Answer Correct ? | 2 Yes | 4 No |
Post New Answer View All Answers
What is double in java?
What happens if we don’t override run method ?
I want to re-reach and use an object once it has been garbage collected. How it's possible?
What is mnemonic in assembly language?
What are kinds of processors?
How to print an arraylist in java?
What is meant by method?
Name few java 8 annotations ?
How to sort double array in java?
How can we make a class singleton?
What is meant by final class?
What is the difference between post and put?
Why parameters should be passed by reference?
What is map and hashmap in java?
What is the synonym of procedure?