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

Can we declare register variable as global?

894


What is an anonymous class in java?

1011


Explain different ways of creating a thread. Which one would you prefer and why?

983


Difference between process and thread?

988


Why is a constant variable important?

896


What is the memory leak in java?

965


What is data type example?

901


Explain java coding standards for constants?

952


What is lambda in java?

980


Can we make main() thread as daemon?

1032


Lowest Common ancestor in a Binary Search Tree and Binary Tree.

893


Explain what are final variable in java?

1020


how we can make a read-only class in java?

934


What are the rules for naming an array?

990


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

912