Tricks to Make Your Java Application Run Faster

Complex String Connection Operations Use StringBuilder

Use ThreadPoolExecutor Instead of Manually Creating Threads

Pre Allocate Appropriate Capacity to the Collection

Use Enum Instead of Constant Class

Use NIO Instead of Traditional IO

Use Shift Operation

Try to Use Singleton Pattern

Try to Use Singleton Pattern

Do not Use Static Variables Arbitrarily