my dog learned polymorphism
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
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?
It's not a secret anymore!