This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Performance and the fly likes Isnt using & a performance issue? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Performance
Bookmark "Isnt using & a performance issue?" Watch "Isnt using & a performance issue?" New topic

Isnt using & a performance issue?

raj sekhar
Ranch Hand

Joined: Oct 16, 2001
Posts: 117
Isnt using & instead of && where usable is a performance issue?
Suggestions. For ex if I have a complicated if loop and using & with all of the conditions. I came across a code that was doing exactly the same for numerous complicated if loops.
Paul Bailey
Ranch Hand

Joined: Oct 20, 2000
Posts: 91
I don't really understand your question, but i see no reason to use & except when there is an item in your conditional that needs to execute regardless of the result of the conditionals.
I agree. Here's the link:
subject: Isnt using & a performance issue?
Similar Threads
Call a Stored Procedure inside of a SELECT statement
remove one line from a file
Access DB2 database from javascript
Request /Response issue