which one is more efficient
int x;
1. if(x==null)
2.if(null==x)
state which one either 1 or 2?
Answer Posted / sandeep
x is a int,a primitive. it can never be null
Is This Answer Correct ? | 9 Yes | 3 No |
Post New Answer View All Answers
What is the difference between a loader and a compiler?
What are runtime exceptions?
Why method overriding is used?
What is included in core java?
What is oop in java?
What is hash table in java?
Is an integer an object?
Is .net better than java?
Can an object subclass another object?
why doesn't java run on all platforms?
Can I overload to string method
Can you create an object of an abstract class?
What is an arraylist in java?
How are this() and super() used with constructors in java programming?
What is a string token?