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

Which sorting is used in arrays sort in java?

1079


Write java program to reverse string without using api?

1045


Is empty list java?

917


Can you access the private method from outside the class?

963


What does i ++ mean in Java?

949


If an object reference is set to null, will the garbage collector immediately free the memory held by that object?

1149


Explain the difference between map and flatmap stream operation?

1257


What is gc()?

1063


What is a method declaration?

985


How concurrent hashmap works?

1183


Does constructor be static?

1031


Can we create object of inner class in java?

944


Can we catch more than one exception in a single catch block?

1074


What is update method called?

1153


What is difference between arraylist and list in java?

1087