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
What advantage do java's layout managers provide over traditional windowing systems?
What is the difference between a checked and an unchecked exception?
What are the application of stack?
Why method overriding is used?
Difference between java and javascript
What does the “static” keyword mean?
Is it possible to override private or static method in java?
What is the preferred size of a component in java programming?
In a class implementing an interface, can we change the value of any variable defined in the interface?
Difference difference paint() and paintcomponent()?
When is the arraystoreexception thrown?
What is an infinite loop in java? Explain with an example.
What is keyword in oop?
What is the Scope of Static Variable?
How do you sort in descending order in java using collections sort?