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 overloading and overriding in java?

1220


What is t type java?

1055


What is difference between java and java ee?

1025


can java object be locked down for exclusive use by a given thread? Or what happens when a thread cannot acquire a lock on an object? : Java thread

979


Explain about anonymous inner classes ?

1074


Can we have a method name same as class name in java?

1050


What is immutable class in java?

938


How to make a non daemon thread as daemon?

1056


What is a java applet? What is an interface?

1089


Wha is the output from system.out.println(“hello”+null); ?

1140


What is meant by javabeans?

1088


What is multithreading in java?

1054


Why is method overloading not possible by changing the return type in java?

1001


what are synchronized methods and synchronized statements? : Java thread

990


Give differences between Quicksort &Mergesort. When should these sorts be used andwhat is their running time in java?

1233