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

What is use of static in java?

1176


What is preflight request?

1022


Implement 2 stacks with just 1 array. The stack routines must not indicate overflow unless every slot in array is used.

1324


What is array and arraylist in java?

1118


What does the @override annotation do?

1042


Why is serialization required?

963


Can final class have constructor?

930


What is a singleton class? Give a practical example of its usage.

1105


What is the difference between stringbuffer and stringbuilder?

1063


Does it matter in what order catch statements for filenotfoundexception and ioexception are written?

957


Why Do I Get A "permission Denied" Error After Downloading The .jnlp Java Launcher For The Vkvm?

1149


What is palindrome in java?

996


why would you use a synchronized block vs. Synchronized method? : Java thread

954


Explain different states of a thread in java?

1059


How does finally block differ from finalize() method?

1052