which one is more efficient
int x;
1. if(x==null)
2.if(null==x)
state which one either 1 or 2?
Answer Posted / person
neither... they wouldn't compile without explicit Integer cast.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is array size in java?
What are the loops in java?
Which sort is best in java?
How many bits are used to represent unicode, ascii, utf-16, and utf-8 characters in java programming?
What is rule of accessibility in java?
What are the differences between processes and threads?
Is 0 an even number?
Why is singleton instance static?
What is locale in java?
What defines function?
What is method reference?
Can we convert stringbuffer to string?
Why do we use regex?
Addition to previous section relative word 5th one was Putrid ans: rotten, also there was prob. in 1st section on bucket weight ans:10kg, also there was a prob. on train speed to find bridge length ans:800 mtrs.
What is difference between jdk,jre and jvm?