which one is more efficient
int x;
1. if(x==null)
2.if(null==x)
state which one either 1 or 2?
Answer Posted / sudhanshu
1. if (x==null)
is the correct answer.
| Is This Answer Correct ? | 21 Yes | 8 No |
Post New Answer View All Answers
What is java virtual machine and how it is considered in context of java’s platform independent feature?
What is Java Package and which package is imported by default?
Difference difference paint() and paintcomponent()?
When a byte datatype is used?
Can a variable be local and static at the same time?
Is java call by reference?
Tell us something about different types of casting?
What about member inner classes?
What is the difference between static binding and dynamic binding?
What is null mean in java?
What are different access specifiers in java? Explain
Can string be considered as a keyword?
What is the instance of an object?
Difference between arraylist and hashset in java?
What is final?