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 |
How to change the priority of thread or how to set the priority of thread?
Write the program numbers into words.For example 2345==two thousand three hundred fourty five
What are the advantages of exception handling?
What is the use of string and stringbuffer?
What is the difference between Static and final?
how does multithreading take place on a computer with a single cpu? : Java thread
List some important features of java 10 release?
List the features of java programming language.
how to transactions(Bank transactions) in business process in ejb?
Write a regular expression to validate a password. A password must start with an alphabet and followed by alphanumeric characters; its length must be in between 8 to 20.
Can java run on google chrome?
What is a double?