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 is run time allocation?
What is data structure in java?
Can we convert list to set in java?
What are the differences between string and stringbuffer?
What is the difference between a break statement and a continue statement?
What carriage return means?
Why does java not allow multiple public classes in a java file ?
Can you extend singleton class?
how would you implement a thread pool? : Java thread
Write code of any action class?
Write a program to check string is palindrome without using loop?
What is the SimpleTimeZone class?
Why isn’t there operator overloading?
What is method reference?
What is Gang of four design patterns