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
Can we declare register variable as global?
What is an anonymous class in java?
Explain different ways of creating a thread. Which one would you prefer and why?
Difference between process and thread?
Why is a constant variable important?
What is the memory leak in java?
What is data type example?
Explain java coding standards for constants?
What is lambda in java?
Can we make main() thread as daemon?
Lowest Common ancestor in a Binary Search Tree and Binary Tree.
Explain what are final variable in java?
how we can make a read-only class in java?
What are the rules for naming an array?
Does it matter in what order catch statements for filenotfoundexception and ioexception are written?