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 is the latest java version?
What are the advantages of java?
How can we use primitive data types as objects?
You can create a string object as string str = “abc”; why cant a button object be created as button bt = “abc”;? Explain
Where is const variable stored?
What is void data type?
Explain the term virtual machine?
How do you find the absolute value?
Can we overload the methods by making them static?
What is the purpose of a transient variable?
how to know the total memory occupied by the objects in the ArrayList(Array list may contain duplicate objects)
How many types of methods are there?
Is simpledateformat safe to use in the multithreaded program?
What are the characteristics of Final,Finally and Finalize keywords.
Explain about object oriented programming and its features?