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 a website container?

914


What types of index data structures can you have in java?

1155


What is basic syntax?

1000


How does finally block differ from finalize() method?

1014


Is string thread safe in java?

1046


Define nashorn in java8.

996


Can a static method be final?

1023


Explain why wait(), notify() and notifyall() methods are in object class rather than in thread class?

968


What are the pillars of java?

883


Can we declare main () method as non static?

939


List the features of java programming language.

983


What is an argument in java?

907


What happens when a thrown exception is not handled?

1067


What are the advantages of assembly language?

885


Which is the best sorting technique in java?

944