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 are scalar data types?
Can we have try block without catch block?
What is the purpose of void class?
What is overloading and overriding in java?
What is xslt in java?
What are thread safe functions?
How to sort a collection of custom Objects in Java?
Is object a data type?
What are default methods ?
Which is faster set or list in java?
What is the basic concept of java?
Explain the importance of finally block in java?
How to compare two strings in java program?
How to sort an array from smallest to largest java?
Can we use catch statement for checked exceptions?