I have seen even matured programmers making few mistakes while programming, which might have performance bottleneck. I would like to mention few of such mistakes here. A function call takes some resources. Even it seems a simple line of code, Java Runtime has to take case of few things to manage it. Consider following example: Java Code: String str = "Lets play football. If you are interested, let me know."; for (int i=0; i < str.length();i++) ...
String str = "Lets play football. If you are interested, let me know."; for (int i=0; i < str.length();i++)
License4J 4.0
Today, 12:23 AM in Java Software