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 java reflection api?
What is lifetime variable?
What is a default method?
how come we know the object is no more used in the class?
Explain polymorphism citing an example.
What is e in java?
What is java util collection?
What is the right data type to represent a price in java?
How is it possible for two string objects with identical values not to be equal under the == operator?
What do you mean by chromounits in java8?
What does %4d mean in java?
What is a java object and java application?
Write a code to create a trigger to call a stored procedure
Can the garbage collection be forced by any means?
What are selection structures?