Java Tuning Tips

27 Jan

Hello friend,

I am too excited to writing this blog in behalf of java programming improvement. I hope to see all java coding should be more efficient, robust and performance oriented. I mooted some tips how we make our code more efficient.

1. Use turnary operator “?” whenever possible.

2. Minimize the use of Casting in your code. Casting is too overhead on JVM.

3. Use Short Circuit Boolean operator

4. Do not rely on finalize method it may cause your resource may not free at expected time.

5. Make your method final, if it will not going to override. It gives you early binding in your generated byte code.

6. Minimize to declare Static variables / constant in a class, that variables not include in gc. Its memory allocation not re-available until the class is unloaded.

Keep reading…………..
Thank You


2 Responses to “Java Tuning Tips”

  1. Amol January 28, 2013 at 6:08 am #

    Good one!!

    • Deepak September 18, 2014 at 1:28 pm #

      Thanks for the post. It really helps.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: