I had a large string content which consists of more than 10 thousand words, hence each time i called the respective java the string gets initialized,so it hits performance,is there any way to improve performance?
As we know if we make class final the class cant be extend by another class
so my question is if we make class final what is the use of making methods final even though we cant override that method because we cant extending the class
so why in java API String methods are final
As my server is throwing out of memory error and i'm using 4 GB RAM in my server
and when when my application is running its displaying out of memory Error and even though i had written one program to check free memory its displaying TotalMemory =64MB and free memory = 42 MB if i set heapsize in commond promt is it effect the tomact using the heap or i want to set it in tomcat level