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 is the latest java version?

1054


What are the advantages of java?

985


How can we use primitive data types as objects?

959


You can create a string object as string str = “abc”; why cant a button object be created as button bt = “abc”;? Explain

988


Where is const variable stored?

932


What is void data type?

982


Explain the term virtual machine?

1042


How do you find the absolute value?

1053


Can we overload the methods by making them static?

999


What is the purpose of a transient variable?

1062


how to know the total memory occupied by the objects in the ArrayList(Array list may contain duplicate objects)

2336


How many types of methods are there?

1045


Is simpledateformat safe to use in the multithreaded program?

996


What are the characteristics of Final,Finally and Finalize keywords.

1173


Explain about object oriented programming and its features?

1013