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
Which is faster string or stringbuilder?
Write a code to create a trigger to call a stored procedure
What is math exp in java?
What is static synchronization?
Explain the difference between transient and volatile in java?
How can the checkbox class be used to create a radio button?
Under what conditions is an object’s finalize() method invoked by the garbage collector?
Can a string be null?
What is thread safe java?
Can a top level class be private or protected?
What is set string?
What are the advantages of exception handling?
What is the difference between conversation & casting?
What is the difference between synchronized and synchronized block?
What is string buffer?