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 / priyanka

2. if(null==x) is correct

Is This Answer Correct ?    3 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is method with example?

1012


Explain throw keyword in java?

991


Is null an object in java?

975


Difference between arraylist and hashset in java?

1067


Does importing a package imports its sub-packages as well in java?

923


Explain access modifiers in java.

967


Implement a stack with push (), pop() and min() in O(1) time.

1029


What is a programming object?

1014


How do you use compareto in java?

922


What do you understand by classes in java?

945


What is the difference between array list and vector in java?

898


Explain the access modifiers for a class, method and variables?

1090


What is the independent variable in an experiment?

905


What is the benefit of abstract class?

888


What does snprintf return?

945