which one is more efficient
int x;
1. if(x==null)
2.if(null==x)
state which one either 1 or 2?

Answer Posted / santosh

if the value is null how can we compare it always (x==null)correct

Is This Answer Correct ?    2 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is string in java is it a data type?

540


Do I need java on my pc?

515


what is the purpose of the runtime class?

555


What are the differences between stringbuffer and stringbuilder?

547


how come we know the object is no more used in the class?

5444






Why java is considered dynamic?

758


What is tcp ip in java?

592


Is vector ordered in java?

540


Does garbage collection occur in permanent generation space in jvm?

611


Is string a wrapper class?

519


Mention a package that is used for linked list class in java.

531


How do you create immutable object in java?

543


What are the kinds of polymorphism?

617


What is busy spin, and why should you use it?

594


What is the main difference between java platform and other platforms?

511