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 / 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 boolean keyword in java?

1179


Which sort is best in java?

1031


How many types of variables are there?

1177


Explain inner classes ?

1178


What are the different types of java?

1112


What causes memory leaks in java?

982


What is a line break?

1080


How hashmap works in java?

1092


How do listeners work?

1105


What is annotation in java?

1114


What is the disadvantage of synchronization?

1058


Give an example of use of pointers in java class.

1076


What is a numeric string?

1077


Is java util list serializable?

984


What is difference between overloading and overriding in java?

1083