Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Java in General
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Tim Cooke
Campbell Ritchie
Ron McLeod
Junilu Lacar
Liutauras Vilda
Sheriffs:
Paul Clapham
Jeanne Boyarsky
Henry Wong
Saloon Keepers:
Tim Moores
Tim Holloway
Stephan van Hulst
Piet Souris
Carey Brown
Bartenders:
Jesse Duncan
Frits Walraven
Mikalai Zaikin
Forum:
Java in General
Null Check Difference
Anjali Pal
Greenhorn
Posts: 16
posted 11 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi all,
I was just wondering if there is any difference between
if(result != null){} and if(null != result){}
Thanks in advance
Abhay Agarwal
Ranch Hand
Posts: 1376
I like...
posted 11 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
please follow below mentioned 2 links of earlier posts. It has answer to your query.
https://coderanch.com/t/541333/java/java/difference-between-two-type-null
https://coderanch.com/t/202493/Performance/java/Null-check
With a little knowledge, a
cast iron skillet
is non-stick and lasts a lifetime.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Difference between getting Connection directly from the pool or from a DataSource
Oracle -- Closing Statements
bit operator and variables?
CustomTags vs Scriptlet at performance perspective
Difference bet "" and null
More...