which one is more efficient
int x;
1. if(x==null)
2.if(null==x)
state which one either 1 or 2?
Answer Posted / person
neither... they wouldn't compile without explicit Integer cast.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is static data type in java?
Is null false in java?
What is the use of http-tunneling in rmi?
What is difference between path and classpath in java?
Is array size fixed in java?
This abstract class is correct ? abstract class A { public abstract void Disp(); public abstract void B() { } public absract virtual C() { } }
What is a singleton puppy?
What is a java object and java application?
How do you empty a list in java?
What is boolean false?
What is the use of using enum to declare a constant?
Give differences between Quicksort & Mergesort. When should these sorts be used and what is their running time?
What is Java Shutdown Hook?
Is java free for commercial?
Can java list be null?