View RSS Feed

My Java Tips

  1. Programming in an efficient way

    by , 11-09-2011 at 06:12 PM (My Java Tips)
    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++)
    Java SE