which one is more efficient
int x;
1. if(x==null)
2.if(null==x)
state which one either 1 or 2?
Answers were Sorted based on User's Feedback
Answer / person
neither... they wouldn't compile without explicit Integer cast.
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / santosh
if the value is null how can we compare it always (x==null)correct
| Is This Answer Correct ? | 2 Yes | 4 No |
What will happen if we cannot mention "finally" in Java Program ???
Explain the polymorphism principle?
y cant i declare method like public final static show()
What is the difference between a method and a procedure?
What are data types in oop?
What are thread groups?
Interface A { String test(); } Interface B { int test(); } Create a class AB which must implements both A & B interfaces.
Can extern variables be initialized?
what do you meant by Platform-Independent?
What is the GregorianCalendar class?
What is UNICODE?
What is an anonymous class in java?