All Questions
2 questions
0
votes
1
answer
267
views
Which is better in terms of performance (bool01==bool02) vs (bool01 && bool02) [duplicate]
Which of these two is the better way of doing the same thing -
public void someMethod(String s, boolean bool02){
boolean bool01 = s!=null;
if(bool01==bool02){
doSomething();
}
}
OR
public void ...
-3
votes
1
answer
9k
views
Java - Best way to set properties of an object [closed]
I don't know if there is any difference in performance, or its just a matter of choice, but I am a perfectionist like that, and I'd like to know.
Lets say you have the object HolySheet. You can set ...