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 difference between arraylist and list in java?
What does g mean in regex?
how is final different from finally and finalize in java?
What is variable and example?
What Is Query Throttling in java?
What is supplier in java?
What is the purpose of the enableevents() method in java programming?
What is the longest unicode character?
Can java arraylist hold different types?
What is the list interface?
Which object oriented concept is achieved by using overloading and overriding?
How to stop a thread in java? Explain about sleep () method in a thread?
What is abstract class constructor called?
Why can't you declare a class as protected?
What is the advantage of OOP in java?