which one is more efficient
int x;
1. if(x==null)
2.if(null==x)
state which one either 1 or 2?
Answer Posted / sandeep
x is a int,a primitive. it can never be null
| Is This Answer Correct ? | 9 Yes | 3 No |
Post New Answer View All Answers
What is overloading and overriding in java?
What is t type java?
What is difference between java and java ee?
can java object be locked down for exclusive use by a given thread? Or what happens when a thread cannot acquire a lock on an object? : Java thread
Explain about anonymous inner classes ?
Can we have a method name same as class name in java?
What is immutable class in java?
How to make a non daemon thread as daemon?
What is a java applet? What is an interface?
Wha is the output from system.out.println(“hello”+null); ?
What is meant by javabeans?
What is multithreading in java?
Why is method overloading not possible by changing the return type in java?
what are synchronized methods and synchronized statements? : Java thread
Give differences between Quicksort &Mergesort. When should these sorts be used andwhat is their running time in java?