Skip to content

Category Archives: Java

Every object in java has a unique lock. Whenever we are using a synchronized keyword, then only the lock concept will come into the picture.… Read More
Filter pattern or Criteria pattern is a design pattern that enables developers to filter a set of objects using different criteria and chaining them in… Read More
Wrapper Class a class whose object wraps or contains primitive data types. When we create an object to a wrapper class, it contains a field… Read More
A positive integer with digits p, q, r, s…, is known as an Armstrong number of order n if the following condition is fulfilled. pqrs...… Read More
For a given number N, the purpose is to find all the prime numbers from 1 to N. Examples:   Input: N = 11 Output:… Read More
The Determinant of a Matrix is a real number that can be defined for square matrices only i.e, the number of rows and columns of… Read More
The Period Class in Java class obtains a quantity or amount of time in terms of years, months and days. The time obtained is a… Read More
Java.rmi.Naming class contains a method to bind, unbind or rebind names with a remote object present at the remote registry. This class is also used… Read More
Downward triangle star pattern means we want to print a triangle that is downward facing means base is upwards and by default, orientation is leftwards… Read More
Given an array arr[] of n elements, write a function to recursively search a given element x in arr[]. Illustration: Input : arr[] = {25,… Read More
The upper star triangle pattern means the base has to be at the bottom and there will only be one star to be printed in… Read More
Here we are getting a step ahead in printing patterns as in generic we usually play with columnar printing in the specific row keep around… Read More
Approach: 1. Get the number of input rows from the user using Scanner Class or BufferedReader Class object. 2. Now run two loops Outer loop… Read More
For a given 4 x 4 matrix, the task is to interchange the elements of the first and last columns and then return the resultant… Read More
For a given 4 × 4 matrix, the task is to interchange the elements of the first and last rows and then return the resultant… Read More

Start Your Coding Journey Now!