Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

which one is more efficient
int x;
1. if(x==null)
2.if(null==x)
state which one either 1 or 2?

Answer Posted / kishore

1.if (x==null) is correct answer.

Is This Answer Correct ?    5 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the lifetime and scope of a variable?

1009


What will happen when using pass by reference in java?

985


What is void keyword?

1097


What is the purpose of static methods and variables?

1041


Name some OOPS Concepts in Java?

1065


How does a cookie work in Servlets?

838


What is backdrop?

1063


What are the difference between composition and inheritance in java?

1026


What is jpa specification?

963


What is meant by class loader? How many types are there? When will we use them?

964


Can we override a variable in java?

1001


How do you use compareto?

943


Is the milky way in a void?

961


How arrays are stored in memory in java?

973


What is canonical name in java?

1125