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
What is the main functionality of the remote reference layer?
What is difference between static and final?
Why scanner is used in java?
What is the common usage of serialization?
What is class and object in java?
How do you remove an element from an arraylist in java?
What is complexity and its types?
what is predefined function in java?
Given a singly linked list, determine whether it contains a loop or not without using temporary space?
How do you download stubs from Remote place?
What are the approaches that you will follow for making a program very efficient?
what is object-oriented programming in java?
what r advatages of websphere? & how to deploy?
Explain the difference between a Thread and a Process.
How to declare an arraylist in java?