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 a website container?
What types of index data structures can you have in java?
What is basic syntax?
How does finally block differ from finalize() method?
Is string thread safe in java?
Define nashorn in java8.
Can a static method be final?
Explain why wait(), notify() and notifyall() methods are in object class rather than in thread class?
What are the pillars of java?
Can we declare main () method as non static?
List the features of java programming language.
What is an argument in java?
What happens when a thrown exception is not handled?
What are the advantages of assembly language?
Which is the best sorting technique in java?