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 advantage do java's layout managers provide over traditional windowing systems?

956


What is the difference between a checked and an unchecked exception?

996


What are the application of stack?

923


Why method overriding is used?

1097


Difference between java and javascript

1095


What does the “static” keyword mean?

1103


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

996


What is the preferred size of a component in java programming?

1004


In a class implementing an interface, can we change the value of any variable defined in the interface?

1085


Difference difference paint() and paintcomponent()?

998


When is the arraystoreexception thrown?

1025


What is an infinite loop in java? Explain with an example.

1041


What is keyword in oop?

953


What is the Scope of Static Variable?

1232


How do you sort in descending order in java using collections sort?

898