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

take an array with -ve and +ve value both.find out the nearest value of 0(zero).if two values are same like(-2 and +2)then extract +2 is nearest of 0(zero).

2046


explain the concept of virtual method invocation in polymorphism in detail?

2273


What is the purpose of assert keyword used in jdk1.4.x?

1131


What are different types of references?

1027


What is string [] java?

1008


How to sort an array from smallest to largest java?

1038


Why to use nested classes in java? (Or) what is the purpose of nested class in java?

1128


What does .equals do in java?

1171


What is anagram in java?

981


What is length in java?

1062


Can constructor be static or final?

1163


What is bytecode verifier?

994


What is the purpose of garbage collection in java?

1141


What is function declaration?

1024


Why do we declare a class static?

1252