which one is more efficient
int x;
1. if(x==null)
2.if(null==x)
state which one either 1 or 2?
Answer Posted / priyanka
2. if(null==x) is correct
Is This Answer Correct ? | 3 Yes | 3 No |
Post New Answer View All Answers
What is linked hashset and its features?
In the below example, what will be the output?
Under what conditions is an object’s finalize() method invoked by the garbage collector?
Explain about core java?
Write a program to find maximum and minimum number in array?
why using interface interface ?
What is the core java?
What is the difference between java applets and applications?
What does main method?
what is the swingutilities.invokelater(runnable) method for? : Java thread
What is a finally block?
What is the longest unicode character?
If system.exit (0); is written at the end of the try block, will the finally block still execute?
Explain creating threads by implementing runnable class?
Can you explain the private protected field modifier?