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


Please Help Members By Posting Answers For Below Questions

What is linked hashset and its features?

544


In the below example, what will be the output?

592


Under what conditions is an object’s finalize() method invoked by the garbage collector?

573


Explain about core java?

622


Write a program to find maximum and minimum number in array?

550






why using interface interface ?

1505


What is the core java?

539


What is the difference between java applets and applications?

564


What does main method?

558


what is the swingutilities.invokelater(runnable) method for? : Java thread

548


What is a finally block?

558


What is the longest unicode character?

693


If system.exit (0); is written at the end of the try block, will the finally block still execute?

613


Explain creating threads by implementing runnable class?

587


Can you explain the private protected field modifier?

568