Skip to content

Category Archives: Java Programs

JSON is nothing but Javascript Object Notation. It is a text format to store the data as well as transport the data. Usually, it will… Read More
In primitive casting, we can convert the byte data type information into the integer data type information by using implicit typecasting. When we try to convert… Read More
Prerequisite: Socket Programming in Java First, we understand the basics of java socket programming. Java Socket is used to communicate between two different JREs. Java… Read More
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

Start Your Coding Journey Now!