which one is more efficient
int x;
1. if(x==null)
2.if(null==x)
state which one either 1 or 2?
Answer Posted / sudhanshu
1. if (x==null)
is the correct answer.
| Is This Answer Correct ? | 21 Yes | 8 No |
Post New Answer View All Answers
What do you understand by an io stream?
Does set allows null in java?
What is bytecode in java ?
Who is the owner of java?
Explain the key functions of data binding?
How can you make sure that your singleton class will always return single instance in multi-threaded environment?
What is a protected void?
What is meant by overloading?
can used Protected Class outside Function.?
What is the purpose of return statement?
What is the internal implementation of set in java?
How do you reverse sort in java?
What is the difference between member variables initialization and assignment in a constructor?
What are the features of junit?
Difference between current previous versions of Java?