I was wondering would there be a performance differences while i use logical operators instead of several if statements. I saw a nice link, does this apply to java also?
I was wondering would there be a performance differences while i use logical operators
Share
I just created class like
compiled it then decompiled by javap -c Test and got these result
As you can see bytecodes of
test1andtest2are same, so there is no difference in usingor