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


Please Help Members By Posting Answers For Below Questions

Is string serializable in java?

538


What is the private method modifier?

576


Explain about strings in java?

614


How many types of design patterns are there?

529


What is a generic data type?

569






What is a method type?

530


If we allocate the memory using 'new' & de-allocated using 'free' then what will happen?

590


Explain restrictions on using enum?

627


How many bytes is a string java?

526


Can Exception handling we can handle multiple catch blocks?

642


What is meant by interface?

561


How do you differentiate abstract class from interface?

526


What are the restrictions that are applied to the java static methods?

524


What is a newline character in java?

564


How do you achieve polymorphism in java?

519