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

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

Is This Answer Correct ?    21 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is java virtual machine and how it is considered in context of java’s platform independent feature?

1106


What is Java Package and which package is imported by default?

1031


Difference difference paint() and paintcomponent()?

944


When a byte datatype is used?

2037


Can a variable be local and static at the same time?

943


Is java call by reference?

923


Tell us something about different types of casting?

866


What about member inner classes?

1038


What is the difference between static binding and dynamic binding?

1044


What is null mean in java?

1029


What are different access specifiers in java? Explain

1056


Can string be considered as a keyword?

989


What is the instance of an object?

1110


Difference between arraylist and hashset in java?

1070


What is final?

1003