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 a nullable field?

583


What are different types of expressions?

556


What are the differences between throw and throws?

532


What is difference between word and integer?

599


What is the use of coding?

526






Do I need java for windows 10?

554


How does list work in java?

512


What are the procedures?

610


Why vector class is used?

546


Is arraylist ordered?

567


Define reflection.

577


What is public static void main?

573


Explain the difference between abstract classes and interfaces in java?

602


What is difference between protected and private?

536


Why there is no call by reference in java?

499