Java Design Patterns 1.What are the examples of Interpreter design pattern in JDK? Interpreter design pattern is used to evaluate sentences in a language. E.g. In SQL we can use it to evaluate a query by evaluating each keyword like SELECT, FROM, WHERE clause. In an Interpreter implementation there is a class for each keyword/symbol. A sentence is just a composite of these keywords. But the sentence is represented by Syntax tree that can be interpreted. In JDK there are many places where Interpreter design pattern is used. Some of these are as follows: java.util.Pattern java.text.Normalizer Subclasses of java.text.Format: DateFormat, MessageFormat, NumberFormat Subclasses of javax.el.ELResolver: ArrayELResolver, MapELResolver, CompositeELResolver etc. 2. What are the examples of Mediator design pattern in JDK? ...
Top 1000+ Interview Question Java JSP Spring Hibernate java collection multithreading java string serialization and desensitization final keyword in java package java design patterns maven git repository cloud computation UNIX shell interview question