which one is more efficient
int x;
1. if(x==null)
2.if(null==x)
state which one either 1 or 2?
Answer Posted / santosh
if the value is null how can we compare it always (x==null)correct
| Is This Answer Correct ? | 2 Yes | 4 No |
Post New Answer View All Answers
What are different types of constants?
Why pass by reference is not possible in java?
What is queue in java?
What is the gregoriancalendar class in java programming?
What is the difference between serializable and externalizable interface?
What is meant by string is immutable?
1.IN CASE OF DYNAMIC METHOD DISPATCH WHY WE USE REFERENCE VARIABLE,WE CAN USE THE DIFFERENT DEFINED OBJECT DIRECTLY TO ACCESS THE DATA MEMBER AND MEMBER FUNCTION OF THAT RESPECTIVE CLASS?WHAT IS THE MAIN FUNCTION OF "REFERENCE VARIABLE" HERE?
List the features of java programming language.
What is printwriter in java?
Explain the difference between the public, private, final, protected, and default modifiers?
what is the difference between a threads start() and run() methods? : Java thread
What are thread safe functions?
What is an example of a keyword?
What is the purpose of void class?
What is java in simple terms?