There is no "synthetic" such type of keyword in java
posted 12 years ago
i come accross this keyword in compiled code. The original version contains inner classes and members of inner class. for memebers for innner class we are using synthetic keyword. but i dont know about it exactly. I think it is internally compiler is using to distinghuish between normal variable and inner class variables ?
It is not a keyword in the Java language. It is used in class files for things that are automatically generated by the compiler. For example, if you write a class without any constructors, the Java compiler will automatically create a no-args constructor. That no-args constructor will have the Synthetic attribute in the class file.
I'm 99% sure that this is something you don't need to know for the SCJP exam.