Skip to content

Category Archives: Java Programs

System class in Java is a part of the lang package and comes with many different fields and methods, and System.arraycopy() is among the 28… Read More
Given a binary string as input, we need to write a program to convert the given binary string into its equivalent decimal number. Examples: Input… Read More
Passwords provide the first line of defense against unauthorized access to your computer and personal information. The stronger your password, the more protected your computer… Read More
We will be creating a basic calculator in java using the nested if/else statements which can perform operations like addition, subtraction, multiplication, division, and modulo… Read More
Inheritance is an important pillar of OOP(Object-Oriented Programming). It is the mechanism in java by which one class is allowed to inherit the features(fields and… Read More
In the Windows filesystem, two folders/files cannot have the same name. If you enter a folder name that was previously used, the system will have… Read More
Apache POI supports customized printing by allowing users to select a range of cells in order to configure the desired print area in a worksheet… Read More
Given an array of integer Triplet. you have to sort the array in ascending order with respect to the last element in the triplet. Examples:… Read More
Converting byte array into Object and Object into a byte array process is known as deserializing and serializing. The class object which gets serialized/deserialized must… Read More
Given a char in Java, the task is to write a Java program that converts this char into Byte. Examples: Input: ch = 'A' Output:… Read More
A Java Byte Array is an array used to store byte data types only. The default value of each element of the byte array is… Read More
A byte array is the array of bytes that is used to store the collection of binary data. For example, the byte array of an… Read More
Gson is a Java library that can be used to convert a JSON string to an equivalent Java object. Gson can work with arbitrary Java… Read More
Given a Double real number. Write a Java program to convert the given double number into a Long (long) in Java. Examples: Input: double =… Read More
Given non-negative integers K, M, and an array arr[ ] consisting of N elements, the task is to find the Mth element of the array… Read More

Start Your Coding Journey Now!