which one is more efficient
int x;
1. if(x==null)
2.if(null==x)
state which one either 1 or 2?
Answer Posted / kishore
1.if (x==null) is correct answer.
| Is This Answer Correct ? | 5 Yes | 6 No |
Post New Answer View All Answers
Can we have multiple classes in single file ?
What is class and its types?
How can we create objects if we make the constructor private ?
What’s meant by anonymous class?
Describe 2 different ways to concatenate two strings.
What is the difference between stringbuffer and stringbuilder class?
Tell me are there implementations for sorting and searching in the java libarary?
What about abstract classes in java?
How do you read and print a string in java?
What are the differences between wait() and sleep()?
Is null a keyword in java?
What's a method in programming?
What is the use of volatile in java?
How will you invoke any external process in java?
Difference between abstract and concrete class ?