List Interface in Java With Example and Benefits

Learn what is list interface in java with example. Also, learn BENEFITS of using List interface with a scenario example. Java List Interface and Example List interface is a child interface of collection. It is implemented by classes like ArrayList, LinkedList and Vector etc.   Code: List interface with ArrayList class In below program, we … Read more List Interface in Java With Example and Benefits

Method overriding in Java with 4 real time examples

Learn method overriding in java language with 4 real time examples. All examples are simulated with working pseudo programs and explained scenario. Method overriding in java oops is run time polymorphism and is always implemented in inheritance relationship. Inheritance relationship can be in between base class and derived class or between interface and its sub … Read more Method overriding in Java with 4 real time examples

Java Interface doesn’t have to be hard. Read This!

A nice note on Java interface in which interface variables, methods has been clearly explained with declaration and examples.  3 complete interface examples and interface FAQs has been included with answers. Here is the topics on interface in java that will be covered in notes What is interface in java and uses Naming Convention of … Read more Java Interface doesn’t have to be hard. Read This!

Use of singleton class in java – Including 3 examples in libraries

Learn use of singleton class in java with examples including three examples used in java libraries. Singleton class is majorly used to create single or unique instance and to avoid performance issue. Singleton class is only the concept or pattern we use in java. However, to solve the problem we can use other methods. But … Read more Use of singleton class in java – Including 3 examples in libraries

Singleton class in java – Includes Easy Implementation Steps

Learn singleton class in java with example. Singleton class is just a concept and we can make any class singleton which we want by following some rules. Singleton class restricts the instantiation of a class to single instance and ensures that only one instance of the class exists in the application. Users e.g. other classes … Read more Singleton class in java – Includes Easy Implementation Steps

Java final keyword – Including 15 doubts with answers

Java final keyword – Complete notes on final keyword in java with examples and uses. Learn why to use final keyword with variables, classes and methods in java programs, including answers to 15 doubts with examples and explanations on final keyword in java language. Also, a brief note has been provided if it is mandatory … Read more Java final keyword – Including 15 doubts with answers