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

Answer Posted / kishore

1.if (x==null) is correct answer.

Is This Answer Correct ?    5 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the main functionality of the remote reference layer?

1414


What is difference between static and final?

561


Why scanner is used in java?

550


What is the common usage of serialization?

574


What is class and object in java?

555






How do you remove an element from an arraylist in java?

460


What is complexity and its types?

526


what is predefined function in java?

539


Given a singly linked list, determine whether it contains a loop or not without using temporary space?

582


How do you download stubs from Remote place?

1359


What are the approaches that you will follow for making a program very efficient?

650


what is object-oriented programming in java?

589


what r advatages of websphere? & how to deploy?

1636


Explain the difference between a Thread and a Process.

566


How to declare an arraylist in java?

482