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. By using map , you can transform the object values. The map operation allows us to apply a function, that takes input parameter of one type, and returns something else.
Filter is used for filtering the data, it always returns the boolean value. If it returns true, then item is added to list else its filtered out (ignored)
Help us improve. Please let us know the company, where you were asked this question :
Ans. Message queues implement an asynchronous communication pattern between two or more processes/threads whereby the sending and receiving party do not need to interact with the message queue at the same time. Messages placed onto the queue are stored until the recipient retrieves them. Message queues have implicit or explicit limits on the size of data that may be transmitted in a single message and the number of messages that may remain outstanding on the queue.
Help us improve. Please let us know the company, where you were asked this question :
Q255. Why Spring boot is preferred over Spring MVC ?
Ans. Spring Boot aims to shorten the code length and provide you with the easiest way to develop a web application. It helps create a stand-alone application with less or almost zero-configuration.
Help us improve. Please let us know the company, where you were asked this question :
Q256. difference between the agile model and v model.
Ans. Agile Model:
Agile Model is the software development model in which development and testing process carries on simultaneously. In this model, both development related processes and testing related processes are parallel. This model provides the facility of more interaction between development team, testing team and end-users.
V-Model:
V-Model is the software development model in which testing takes place once the development process is fully complete or almost complete. In V-Model development and testing process are kept quite separate. It is not as reliable as Agile Model.
Help us improve. Please let us know the company, where you were asked this question :
Ans. We initialize two variables first and second to INT_MIN as,
first = second = INT_MIN
then Start traversing the array,
If the current element in array say arr[i] is greater
than first. Then update first and second as,
second = first
first = arr[i]
If the current element is in between first and second,
then update second to store the value of current variable as
second = arr[i]
then Return the value stored in second.
Help us improve. Please let us know the company, where you were asked this question :