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

if the value is null how can we compare it always (x==null)correct

Is This Answer Correct ?    2 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are scalar data types?

1059


Can we have try block without catch block?

1026


What is the purpose of void class?

1061


What is overloading and overriding in java?

1218


What is xslt in java?

972


What are thread safe functions?

946


How to sort a collection of custom Objects in Java?

1052


Is object a data type?

960


What are default methods ?

1036


Which is faster set or list in java?

1029


What is the basic concept of java?

1008


Explain the importance of finally block in java?

956


How to compare two strings in java program?

1047


How to sort an array from smallest to largest java?

978


Can we use catch statement for checked exceptions?

959