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


Please Help Members By Posting Answers For Below Questions

Why is the main method static?

608


What is var keyword ?

742


What is charat ()?

531


What are the fileinputstream and fileoutputstream?

571


How can you handle java exceptions?

532






What are keywords in programming?

570


What is reflexive association?

1014


When throws keyword is used?

584


What is another word for methodology?

521


What are the methods available in a class?

589


What does \ mean in regex?

626


What happens when a thrown exception is not handled?

584


Which class cannot be a subclass in java?

547


What is the difference between procedural and object-oriented programs?

530


What is the difference between conversation & casting?

582