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

Can we have multiple classes in single file ?

1012


What is class and its types?

972


How can we create objects if we make the constructor private ?

947


What’s meant by anonymous class?

1018


Describe 2 different ways to concatenate two strings.

1139


What is the difference between stringbuffer and stringbuilder class?

1030


Tell me are there implementations for sorting and searching in the java libarary?

976


What about abstract classes in java?

1010


How do you read and print a string in java?

904


What are the differences between wait() and sleep()?

955


Is null a keyword in java?

913


What's a method in programming?

988


What is the use of volatile in java?

995


How will you invoke any external process in java?

1045


Difference between abstract and concrete class ?

1072