More than 3000 questions in repository. There are more than 900 unanswered questions. Click here and help us by providing the answer. Have a video suggestion. Click Correct / Improve and please let us know.
Ans. We can use LinkedHashMap as it will give time complexity of O(1) for lookup and We can maintain the insertion order to identify the Last used elements for eviction.
Help us improve. Please let us know the company, where you were asked this question :
Ans. Java provides a new additional feature in Array class which is used to sort array elements in parallel.New methods have been added to the java.util.Arrays package that use the JSR 166 Fork/Join parallelism common pool to provide sorting of arrays in parallel.
The methods are called parallelSort() and are overloaded for all the primitive data types and Comparable objects.
Help us improve. Please let us know the company, where you were asked this question :
Ans. It is javascript framework which is written in javascript.It is best for single page application.It extends the html with new attributes which makes it more useful for ui dveloper.
Help us improve. Please let us know the company, where you were asked this question :
Ans. Two-way binding means that any data-related changes affecting the model are immediately propagated to the matching view(s), and that any changes made in the view(s) (say, by the user) are immediately reflected in the underlying model. When app data changes, so does the UI, and conversely.
Help us improve. Please let us know the company, where you were asked this question :
Ans. QNames were introduced by XML Namespaces in order to be used as URI references.It defines a valid identifier for elements and attributes. QNames are generally used to reference particular elements or attributes within XML documents.
Help us improve. Please let us know the company, where you were asked this question :
Ans. XPath (XML Path Language) is a query language for selecting nodes from an XML document. In addition, XPath may be used to compute values (e.g., strings, numbers, or Boolean values) from the content of an XML document
Help us improve. Please let us know the company, where you were asked this question :
Q1560. What is the use of @Import and @ImportResource anotations ?
Ans. The @Import annotation is used to import one or more @Configuration classes. This annotation provides the functionality equivalent to element in xml based configuration.
The @ImportResource annotation is used to import one or more XML configuration files.
Help us improve. Please let us know the company, where you were asked this question :
Ans. Setter Injection in Spring is a type of dependency injection in which the framework injects the dependent objects into the client using a setter method.
Help us improve. Please let us know the company, where you were asked this question :