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
how to split string in java?
Why we use multi threading instead of multiprocessing?
Is zero a positive integer?
What’s meant by anonymous class?
Why to use nested classes in java?
What are peerless components?
Can we access the non-final local variable, inside the local inner class?
What is the size of integer?
What are functions in java?
What is the use of runnable interface?
How do you make an arraylist empty in java?
What is meant by collection in java?
What is ordered map in java?
Is a boolean variable?
What is the difference between keyword and identifier?