Java abstract method example | Use non-abstract class

A Java method without a body statement means the only declaration and does not have an implementation called a Java abstract method. The abstract method must start to be used as an Abstract keyword. An Abstract method can use only in the Abstract class. Syntax A simple syntax (signature) of Abstract method. abstract void methodName(); Read More…


Java abstract class | Examples, constructor, default method

What is Abstract Class in java? In a java class is declared with Abstract Keyword called a “Java Abstract Class“. An abstract class can have Abstract methods and no abstract method or both. This class can’t be instantiated, it should be extended and its method implemented. A point of Java abstract class Abstraction is one of the Read More…


JavaScript array concat | Method | merge (add) two arrays

Javascript array concat used to merge (add/join) two or more arrays. This method will not change the current Array value and a length property. But instead returns a new array with the joint value of arrays. Syntax The simple syntax of adding multiple arrays in JavaScript. Parameter Values Arrays:– (array2, array3, …, arrayX) to be merge. JavaScript Read More…


JavaScript array push | method | Add an ele​men​t to the array

JavaScript array push Method is added a new element in the array and returns an updated new length. The new element will be added ad the end of the JS Array. This method will also change the array length property. Syntax Simple syntax of adding an element in an array using push() method. Parameters elementN Read More…


JavaScript array pop | method | Remove last​ element from array

JavaScript Array pop method is used to remove the last element from the JS Array and returns that element. This method will modify the Array length by 1. Pop() is one of the methods to use to remove and add four methods. Others 3 methods are shift(), push() and unshift(). Syntax A simple syntax of Read More…


Remove element from Array JavaScript | First, Last, Value, Key, Index

Removing data from Array is a very common task for software developers. To Remove elements from array javascript, there is not a simple (inbuild) Array.remove() method. But you can add and remove array elements in different ways in JavaScript. Some Array operations Here is some operation to remove elements from an Array:- Remove the Last Read More…


JavaScript Array Length | Get number of elements in Array

By using Javascript Array Length property can get the numbers of elements in an Array. A Lenght property returns the number of elements in that array. Length of Array can be stored in JavaScript variable. Now, you might be thinking what is use of Array Length? Javascript array length is mainly used in loops statements. Read More…