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

2. if(null==x) is correct

Is This Answer Correct ?    3 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we have any code between try and finally blocks?

966


What is a parameter in a function?

951


What is the purpose of the runtime class in java programming?

1010


Explain when we should make an instance variable private.

1042


define polymorphism in java

1039


Can a abstract class be defined without any abstract methods?

934


What are the two categories of data types in the java programming language?

918


Explain the difference between arraylist and linkedlist in java?

916


How do you calculate roots in java?

1012


what is heap memory?

1038


What is boolean used for?

985


What 4 doubled?

925


What is the effect of keeping a constructor private?

872


what is ststic with example

2002


List some important characteristics on jre

1030