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
How does remove work in java?
What are constructors in java?
How can we use primitive data types as objects?
Why are constructors used?
What is finalize() function in java?
Why main function is static?
What is concurrent hashmap and its features?
What is garbage collection? Can it be forced to run?
what are the states associated in the thread? : Java thread
What is computer compiler?
Why does java not support pointers?
What is the meaning of course?
What is the instance of an object?
Can we make a constructor final?
What is polymorphism and what are the types of it?