which one is more efficient
int x;
1. if(x==null)
2.if(null==x)
state which one either 1 or 2?
Answer Posted / sudhanshu
1. if (x==null)
is the correct answer.
| Is This Answer Correct ? | 21 Yes | 8 No |
Post New Answer View All Answers
Is list thread safe in java?
Is it possible to override private or static method in java?
I want to control database connections in my program and want that only one thread should be able to make database connection at a time. How can I implement this logic?
What does a za z0 9 mean?
What are the different types of methodologies?
What is a class object?
how to convert Java project into Maven ?
What is bifunction in java?
Why are global variables used?
Is char * a string?
What is string example?
What is an immutable object?
Can a class with private constructor be extended?
How many bits are used to represent unicode, ascii, utf-16, and utf-8 characters in java programming?
What is return type in java?