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 is string in java is it a data type?
Do I need java on my pc?
what is the purpose of the runtime class?
What are the differences between stringbuffer and stringbuilder?
how come we know the object is no more used in the class?
Why java is considered dynamic?
What is tcp ip in java?
Is vector ordered in java?
Does garbage collection occur in permanent generation space in jvm?
Is string a wrapper class?
Mention a package that is used for linked list class in java.
How do you create immutable object in java?
What are the kinds of polymorphism?
What is busy spin, and why should you use it?
What is the main difference between java platform and other platforms?