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. An application layer is an abstraction layer that specifies the shared communications protocols and interface methods used by hosts in a communications network.
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 :
Ans. Spring is a Framework where we have to Build the Configurations Manually but Springboot have default configurations that allow faster bootstrapping. Spring Framework requires a number of dependencies to create a web app. Spring Boot, on the other hand, can get an application working with just one dependency.
Help us improve. Please let us know the company, where you were asked this question :
Ans. A List is an child interface of collection interface in java where as Linked list is and implementation class of List interface which has doubly linked as a underlying data structure
Help us improve. Please let us know the company, where you were asked this question :
Ans. If there is a situation to remove duplicates values from an arrayList. Developer implemented using legacy for-loop where I suggested to use Linked hash set to remove duplicates from the list.
Help us improve. Please let us know the company, where you were asked this question :
Ans. As String is immutable so by maintaining pool area we can refer the object to same area if they are with same content. But when it comes to string buffer or builder then due to mutable property if we do so then all the objects referring to that area will from now has new content.. So as to avoid this pool is present only in string.
Help us improve. Please let us know the company, where you were asked this question :
Ans. we use serialization when we send response to client in JSON format.(the process of converting model object into json is nothing but serialization
Help us improve. Please let us know the company, where you were asked this question :