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"

Comments

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

    PIC Scheme Singapore

    ReplyDelete

Post a Comment

Popular posts from this blog

FFMPEG - Creating timelapse with FFMPEG with JPEG

MP4 File Format Part 1

RTSP - RTP over TCP