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
Can we extend singleton class in java?
What are the differences between string, stringbuffer and stringbuilder?
What are the benefits of operations?
What is default switch case? Give example.
What is an empty list in java?
What's the difference between comparison done by equals method and == operator?
What is a conditional equation?
What are the advantages of unicode?
How do you sing an Applet ?
What is the static variable?
What is a generic data type?
Considering notepad/ie or any other thing as process, what will happen if you start notepad or ie 3 times? Where 3 processes are started or 3 threads are started?
What is the default access specifier for variables and methods of a class?
Will set allow duplicates in java?
What is parameter example?