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, […]
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? An interface in java is […]
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 […]
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 […]
Loose coupling and tight coupling in java – Before and After Code Example
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.