which one is more efficient
int x;
1. if(x==null)
2.if(null==x)
state which one either 1 or 2?
Answer Posted / kishore
1.if (x==null) is correct answer.
| Is This Answer Correct ? | 5 Yes | 6 No |
Post New Answer View All Answers
take an array with -ve and +ve value both.find out the nearest value of 0(zero).if two values are same like(-2 and +2)then extract +2 is nearest of 0(zero).
explain the concept of virtual method invocation in polymorphism in detail?
What is the purpose of assert keyword used in jdk1.4.x?
What are different types of references?
What is string [] java?
How to sort an array from smallest to largest java?
Why to use nested classes in java? (Or) what is the purpose of nested class in java?
What does .equals do in java?
What is anagram in java?
What is length in java?
Can constructor be static or final?
What is bytecode verifier?
What is the purpose of garbage collection in java?
What is function declaration?
Why do we declare a class static?