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
Why is the main method static?
What is var keyword ?
What is charat ()?
What are the fileinputstream and fileoutputstream?
How can you handle java exceptions?
What are keywords in programming?
What is reflexive association?
When throws keyword is used?
What is another word for methodology?
What are the methods available in a class?
What does \ mean in regex?
What happens when a thrown exception is not handled?
Which class cannot be a subclass in java?
What is the difference between procedural and object-oriented programs?
What is the difference between conversation & casting?