which one is more efficient
int x;
1. if(x==null)
2.if(null==x)
state which one either 1 or 2?
Answer Posted / priyanka
2. if(null==x) is correct
| Is This Answer Correct ? | 3 Yes | 3 No |
Post New Answer View All Answers
Can we have any code between try and finally blocks?
What is a parameter in a function?
What is the purpose of the runtime class in java programming?
Explain when we should make an instance variable private.
define polymorphism in java
Can a abstract class be defined without any abstract methods?
What are the two categories of data types in the java programming language?
Explain the difference between arraylist and linkedlist in java?
How do you calculate roots in java?
what is heap memory?
What is boolean used for?
What 4 doubled?
What is the effect of keeping a constructor private?
what is ststic with example
List some important characteristics on jre