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
Differentiate between array list and vector in java.
What is the meaning of variable in research?
How can you add and remove nodes in jtree?
Define locale.
What is entry set in java?
What is the escape character in java?
How does finally block differ from finalize() method?
When should I use singleton pattern?
What do you mean by a JVM?
Are constructors methods?
Why do we need array in java?
What is externalizable?
What are the files generated after using IDL to java compiler?
Explain notifyall() method of object class ?
Explain how hashmap works?