Thursday, July 11, 2013

Java - Synthetic Keyword

Reading on this post - Worst -- and best -- IT interview questions. It stated a Favorite IT interview question - "Tell me about Java's 'synthetic' keyword." Hmmm.. I myself have no idea what is a synthetic keyword

After some search in Google, to sum up, Synthetic keyword is an attribute generated by the Java compiler and that section of code is not suppose to be appear in the actual code. Thus, a normal programmer will not be able to use this keyword.

In JVM Documentation 4.7.8, it said "A class member that does not appear in the source code must be marked using a Synthetic attribute"

1 comment:

  1. The blog is absolutely fantastic. Lots of great information and inspiration, both of which we all need. Thanks.

    PIC Scheme Singapore


PuTTY - Keeping session alive

If you have some VPN tunnels that timeout based on activity, you could try the following setting if you are using PuTTY 1) Open PuTTY and...