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 in java 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, […]
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 […]
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 […]
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 […]
Learn loose coupling in java with simple COMPARISON code EXAMPLE with tight coupling. First tightly coupled code then the loosely coupled code. Advantage and disadvantage of it.