Play framework Interview Questions
What do you mean by Iterator in Play Framework?
The iterator interface provides a different technique to iterate over any Collection. So we can easily get iterator instance from a collection utilizing iterator technique. The iterator takes the place of Enumeration in the Java Collection Framework. The iterator also provides the caller to destroy elements from the underlying collection at the time of the iteration.
What are the basic differences between Enumeration and Iterator interfaces?
An Enumeration is twice as fast as Iterator and it is used for very less memory. Enumeration also is used for is very basic and fits to basic needs. But the Iterator is safer as compared to Enumeration because it always denies different threads to modify the group object is being iterated by it. The Iterator provides the caller to destroy elements from the underlying that is not possible with Enumeration.
What is the advantage of Play Framework?
Here are some of the most important advantages:
- Modern stacks
- Java and (Scala)
- Amazing error handling
- Graphically improved developer productivity
What do you mean by iterator fail-fast property?
The Iterator fail-fast property test for any modification in the structure of the underlying collection every time we try to get the next element. If there are any modifications found, by CocurrentModificationException. The complete implementations of Iterator in Collection classes fail-fast by make except the concurrent collection classes such as ConcurrentHashMap and CopyOnWriteArrayList.
What do you understand by UnsupportedOperationException?
The UnsupportedOperationException is the exception; it is used for indicating that the operation is not supported. It is also used extensively in JDK classes, in Collection Framework, java.util.collections.UnmodifiableCollection by this exception for all add or remove operations.
What do mean by Comparable and Comparator interfaces?
The Java allows Comparable interface which always be implemented by any custom class if we want to use Arrays or Collections sorting techniques. The Comparable interfaces have compared To (T obj) techniques. We always override this technique in such a way that it returns a negative integer, zero, or a passive integer if this object is less than, equal to, or larger than the object over as element.
- Play Framework – An Introduction
- Play Framework Template Engine
- HTTP Form Submission and validation
- Play Framework – Working on JSON
- Play Framework – XML API with Play Framework
- Play Framework – Accessing an SQL database
- Play Framework – Calling Web Services
- Play Framework – Testing your application
- Play Framework – Writing Plugins
- Play Framework – Integrating with Akka
- Play framework Interview Questions