
Binary search is used to search a key element from multiple elements. Binary search is faster than linear search. In case of binary search, array elements must be in ascending order. If you have unsorted array, you can sort the array using Arrays. public class BinarySearch { public static void main(String str[]) { int[] elements = new int[]{11,17,18,45,50,71,95,98}; int index = binarySearch(elements,

The list of array is traversed sequentially and every element is checked. In this type of searching, we simply traverse the list completely and match each element of the list with the item whose location is to be found. If the match found then location of the item is returned otherwise the algorithm return NULL.

Generally java memory is divided into two big parts : Heap Stack Heap is huge amount of memory compare to stack. 1024 MB is default value of heap size in java. Java Heap Space is used throughout the application, but Stack is only used for the method — or methods — currently running. Stack :Stack memory is responsible

Java thread pools represents a group of worker thread that are waiting for job and reuse many times. A thread pool reuses previously created threads to execute current tasks and offers a solution to problem of thread cycle overhead and resource thrashing.
ng-serve – to build the application and starts a web serverng lint – checking the code with the coding standardstslint.json – rules defined hereng-build – to compile into an output directoryng-test – to run your unit tests with karma the provided test runner.package.json – dependencies defined here.index.html – 1st running file in angular.router-outlet app.component.html –

NPM in angular – NPM(Node Pack Manager) The Angular Framework, Angular CLI and components used by Angular applications are packaged as npm packages and distributed via npm registry. You can download and install these npm packages by using the npm CLI client, which is installed and run as Node.js application.

Angular is client side framework that is specifically designed to help developers to build SPAs (Single Page Application).