Skip to content

Category Archives: Java

Lambda Expressions are anonymous functions. These functions do not need a name or a class to be used. Lambda expressions are added in Java 8.… Read More
Java StAX API was introduced in Java 6 and considered superior to DOM and SAX parsers. We can use Java StAX parser to read XML… Read More
String startsWith() as the syntax suggests this method is present in String class which is responsible for testing if a string starts with the specified… Read More
So primarily discuss what is endsWith() method is, so it is a method of String class that checks whether the string ends with a specified… Read More
Problem statement: We need to find and print unique pairs among all given pairs. Generally, if we have to find the unique numbers among all… Read More
Let us first know what is a class and package in Java. Class in java is a model for creating objects. It means that the… Read More
Multithreading feature of java is the feature around which the concept revolves as it allows concurrent execution of two or more parts of a program… Read More
Given two linked lists, your task is to complete the function make union(), which returns the union of two linked lists. This union should include… Read More
Prerequisite – Turing Machine Turing Machines can broadly be classified into two types, the Acceptors and the Transducers. Acceptor Turing Machine is an automaton used… Read More
An array is a data structure that consists of a group of elements of the same data type such that each element of the array… Read More
Variables in Java do not follow polymorphism. Overriding is only applicable to methods but not to variables. In Java, if the child and parent class… Read More
There are four variants of indexOf() method. indexOf(): This method returns the index within this string of the first occurrence of the specified character or… Read More
Java is an Object-Oriented Programming(OOP) language. We need to create objects in order to access methods and variables inside a class. However, this is not… Read More
Java.lang.UnsatisfiedLinkError is a subclass of LinkageError Class. When Java Virtual Machine(JVM) did not find the method Which is declared as  “native” it will throw the… Read More
The process in which a function calls itself directly or indirectly is called recursion and the corresponding function is called a recursive function. In the… Read More