QQ1. null
- (a)) What is a Singleton Design Pattern? Explain a scenario where it is useful in a web application and provide a Java code example for its implementation. (250 words)
- (b)) Differentiate between a Web Server and a Web Container. Explain the core components of the Model-View-Controller (MVC) architecture with a suitable diagram. (250 words)
- Singleton pattern ensures only one instance of a class and global access to it.
- Web Server serves static content and handles HTTP requests.
- Web Container provides runtime for dynamic components like Servlets/JSPs.
- MVC Model handles business logic, data, and rules.
Answer: