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


Please Help Members By Posting Answers For Below Questions

What is difference between arraylist and list in java?

585


What does g mean in regex?

566


how is final different from finally and finalize in java?

609


What is variable and example?

521


What Is Query Throttling in java?

564






What is supplier in java?

559


What is the purpose of the enableevents() method in java programming?

589


What is the longest unicode character?

695


Can java arraylist hold different types?

496


What is the list interface?

612


Which object oriented concept is achieved by using overloading and overriding?

557


How to stop a thread in java? Explain about sleep () method in a thread?

584


What is abstract class constructor called?

571


Why can't you declare a class as protected?

600


What is the advantage of OOP in java?

661