Rather a simple question for experienced designer in Java. if you see different implementation of a class has different way of doing certain thing than overriding is the way to go while overloading is doing same thing but with different input. method signature varies in case of overloading but not in case of overriding in java.
Posted Date:- 2021-09-07 03:13:04
When to use the Template method?
Which are J2EE Design Patterns?
What is Chain of Responsibility?
Mention what is the difference between VO and JDO?
Mention what is the limitation of using singleton pattern?
Mention which classes in JDK uses singleton pattern?
Mention what is the difference between “throw†and “throws�
What specific problems builder pattern solves?
Difference between Factory and Strategy Design Pattern?
When will you prefer to use a Factory Pattern?
Can we create a clone of a singleton object?
Can you write thread-safe Singleton in Java?
Mention what is the difference between “throw†and “throws�
Explain how can you prevent creating another instance of singleton using clone() method?
Mention why access to the non-static variable is not allowed from static method in Java?
What is Adapter design pattern ? Give examples of adapter design pattern in Java?
Give example of decorator design pattern in Java ? Does it operate on object level or class level ?
What is observer design pattern in Java
What is main benefit of using factory pattern ? Where do you use it?
Can you name few design patterns used in standard JDK library?
Mention which design pattern will be helpful to add new functionality to an existing object?
Mention which pattern is used when we need to decouple an abstraction from its implementation?
When service locator pattern is used?
Describe the singleton pattern and your top advantages and disadvantages associated with it.
How is the bridge pattern different from the adapter pattern?
In your opinion, what are the advantages of the builder design pattern?
In what order would you describe a design pattern in its documentation?
Differentiate factory and abstract factory design patterns.
What are the different categories of design patterns?
When do you overload a method in Java and when do you override it?
Design a Vending Machine which can accept different coins, deliver different products?
In how many ways can you create singleton pattern in Java?
What does singleton Design Pattern do ?
What Are Disadvantages of Design Patterns?