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
Differentiate jar and war files?
Is java a compiler?
I am a fresher and know core java, c languge, html, css etc if I am illegible for any job then send it on my email tatranakshay276@gmail.com
Can a abstract class be defined without any abstract methods?
What are the different types of inheritance in java?
Does java allow default arguments?
How can you traverse a linked list in java?
What are streams in java 8?
Which sorting algorithm is best in java?
What is a boolean flag in java?
What is the importance of static variable?
Can we access the non-final local variable, inside the local inner class?
How much is a java license?
Give me example of derived data types.
Which sorting is used in arrays sort in java?