• 19 September

    Java 9 – Javadoc Improvement

    Java has upgraded its Javadoc for better user interaction and user-experience. It includes a simplified search, HTML generator, Doclet API, etc. What is Javadoc The Javadoc is a tool like javac and a part of JDK. It is used to generate HTML documentation of Java source code. If you ever visit to oracle site you […]

  • 19 September

    Java 9 – @SafeVarargs Annotation

    In this post, we will see about @SafeVarargs Annotation in Java 9. The @SafeVarargs is an annotation that is used to perform safe operations. When a method takes variable arguments, then it may cause to unsafe operation, so the @SafeVarargs annotation tells to the compiler to perform safe operations. For example, if we don’t use […]

  • 19 September

    Java 9 – Anonymous Inner classes and Diamond Operator

    Type inference is a feature of Java that was introduced in Java 7. Now, Java compiler can infer type of a data automatically. For example, if we create an ArrayList then we use the code like: [crayon-6767dd00deaa2460794513/] You can see that Java 7 allows us to use empty diamond operator to avoid code redundancy. But […]

  • 19 September

    Java 9 – Private methods in interface

    In this topic, we will discuss the private and private static methods inside an interface. interface in Java is a concept which is used to achieve abstraction. In early versions of Java, an interface can contain only abstract methods and constants until Java 8 which allows to add default and static methods as well. In […]