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

Is list thread safe in java?

969


Is it possible to override private or static method in java?

1039


I want to control database connections in my program and want that only one thread should be able to make database connection at a time. How can I implement this logic?

1141


What does a za z0 9 mean?

1184


What are the different types of methodologies?

1063


What is a class object?

1015


how to convert Java project into Maven ?

1105


What is bifunction in java?

1268


Why are global variables used?

1072


Is char * a string?

1047


What is string example?

1112


What is an immutable object?

1171


Can a class with private constructor be extended?

1001


How many bits are used to represent unicode, ascii, utf-16, and utf-8 characters in java programming?

1063


What is return type in java?

1124