Readability of the code is improved using the annotation. Override annotation is used to indicate to the compiler that the method is overridden. Rectangle class overrides getArea method and the implementation of the method is specific to Rectangle. ![]() Sample code for Helloworld in java is shown below: Hello World public class Helloworld Some of the features which play important role in the popularity of java are as follows:
0 Comments
Leave a Reply. |