which one is more efficient
int x;
1. if(x==null)
2.if(null==x)
state which one either 1 or 2?
Answer Posted / sandeep
x is a int,a primitive. it can never be null
| Is This Answer Correct ? | 9 Yes | 3 No |
Post New Answer View All Answers
What is use of static in java?
What is preflight request?
Implement 2 stacks with just 1 array. The stack routines must not indicate overflow unless every slot in array is used.
What is array and arraylist in java?
What does the @override annotation do?
Why is serialization required?
Can final class have constructor?
What is a singleton class? Give a practical example of its usage.
What is the difference between stringbuffer and stringbuilder?
Does it matter in what order catch statements for filenotfoundexception and ioexception are written?
Why Do I Get A "permission Denied" Error After Downloading The .jnlp Java Launcher For The Vkvm?
What is palindrome in java?
why would you use a synchronized block vs. Synchronized method? : Java thread
Explain different states of a thread in java?
How does finally block differ from finalize() method?