which one is more efficient
int x;
1. if(x==null)
2.if(null==x)
state which one either 1 or 2?

Answer Posted / person

neither... they wouldn't compile without explicit Integer cast.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is initial size of arraylist in java?

538


Find the value of a specified element of the array arr[i] where 0 <= i <= n-1

545


What is difference between printf and scanf?

523


Is it possible to override the main method?

535


Which software is used for java programming?

561






How to sort numbers in java without array?

535


What is a parameter in java?

548


What is high level language in computer?

541


What is the longest unicode character?

695


What is a jagged array in java?

538


Can we write multiple catch blocks under single try block?

577


What is the use of jtable?

652


What is an empty list in java?

534


What are the types of java?

607


hr interview how many minutes asking question

1571