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 the difference between a loader and a compiler?

534


What are runtime exceptions?

624


Why method overriding is used?

551


What is included in core java?

592


What is oop in java?

541






What is hash table in java?

496


Is an integer an object?

527


Is .net better than java?

571


Can an object subclass another object?

571


why doesn't java run on all platforms?

579


Can I overload to string method

979


Can you create an object of an abstract class?

561


What is an arraylist in java?

529


How are this() and super() used with constructors in java programming?

580


What is a string token?

544