Why is determining the cost of a java operation so unclear?
<p>I have tried several times to search the answer to what java operation is more demanding form my CPU time or RAM usage, because i do not always have a lot of RAM to spare of CPU time to give. So when i ask anyone or try to find what operations are more heavy i get a real vague answer like that is undecidable. </p>

<p>examples:</p>

<p>What is more efficient?<br>
try / catch or 4-5 if-statements?<br>
making a few new objects or store everything in 4 to 5 list and or maps in a static way?<br>
What is most RAM consuming and how do i avoid using that operation?</p>

<p>My question is why is this so undecidable?</p>

<p>Thank you in advance!</p>
