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
Is string serializable in java?
What is the private method modifier?
Explain about strings in java?
How many types of design patterns are there?
What is a generic data type?
What is a method type?
If we allocate the memory using 'new' & de-allocated using 'free' then what will happen?
Explain restrictions on using enum?
How many bytes is a string java?
Can Exception handling we can handle multiple catch blocks?
What is meant by interface?
How do you differentiate abstract class from interface?
What are the restrictions that are applied to the java static methods?
What is a newline character in java?
How do you achieve polymorphism in java?