Skip to content

Category Archives: Java

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
Before getting started, let us have prior knowledge of parameters that makes use of the following three queries parameters, which are as follows: boolean execute(String… Read More
In order to understand one must have a strong grasp over  Java OOPs, Java Multithreading & Java Interrupted-Exception. If not go through them as the… Read More
The lower_bound() method of C++ return the index of the first element in the array which has a value not less than key. This means… Read More
One of the most popular and important topics is lambda expression in java but before going straight into our discussion, let us have insight into… Read More