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

x is a int,a primitive. it can never be null

Is This Answer Correct ?    9 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which is faster string or stringbuilder?

876


Write a code to create a trigger to call a stored procedure

905


What is math exp in java?

999


What is static synchronization?

1033


Explain the difference between transient and volatile in java?

951


How can the checkbox class be used to create a radio button?

966


Under what conditions is an object’s finalize() method invoked by the garbage collector?

973


Can a string be null?

921


What is thread safe java?

866


Can a top level class be private or protected?

993


What is set string?

1077


What are the advantages of exception handling?

1008


What is the difference between conversation & casting?

998


What is the difference between synchronized and synchronized block?

1001


What is string buffer?

901