which one is more efficient
int x;
1. if(x==null)
2.if(null==x)
state which one either 1 or 2?
Answers were Sorted based on User's Feedback
Answer / person
neither... they wouldn't compile without explicit Integer cast.
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / santosh
if the value is null how can we compare it always (x==null)correct
| Is This Answer Correct ? | 2 Yes | 4 No |
where the static methods will live ,on stack ? can you explain brefly
Can we declare array without size in java?
perpare on factorypattern,linklist wothout using collection, (multitharding ie create producer/customer therad producer create Queue continuesly,consumer consume queue, consumer wait if queue is full,producer wait if queue is empty),diff betn sleep(1000)&wait(1000) these r the main Q ask in huawei(2008)
Why operator overloading is not in Java?
What is the difference amongst jvm spec, jvm implementation, jvm runtime ?
Lowest Common ancestor in a Binary Search Tree and Binary Tree.
What are identifiers in java?
What is the use of private static?
What does || mean in vectors?
Why Java is called as purely platform independent..? Explain briefly..dont Give regular answers Explain with your own example..?
How big is a pointer?
What are the super most classes for all the streams?