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

What is final method in java?

1034


What is a functional interface?

1042


Program to Find the second largest element in an array.

1190


What are the basic control structures?

990


How do you sort objects in java?

976


Variable of the boolean type is automatically initialized as?

1011


What is the equal sign?

1123


Why do we create public static method in java?

1112


What are conditionals and its types?

1146


Why are functions called methods in java?

1003


What is a superclass?

1349


What is a method type?

1006


What is difference between static and final?

1070


What does those terms actually mean included in the j.d.k i.6?

2122


What is the purpose of declaring a variable as final?

972