Sakshi Ghosh has Published 10 Articles

Java Program to Illustrate Use of Binary Literals

Sakshi Ghosh

Sakshi Ghosh

Updated on 28-Jan-2025 18:23:53

542 Views

In this article, we will learn to illustrate the use of binary literals in Java. This feature is particularly useful when working with low-level data manipulation, such as in embedded systems or when dealing with bitwise operations. What is Binary Literal? A binary literal is a number that is ... Read More

Java Program to Illustrate a Method without Parameters but with Return Type

Sakshi Ghosh

Sakshi Ghosh

Updated on 26-Dec-2024 20:46:37

5K+ Views

In Java, a method is a block of code that performs a specific task. Methods can take zero or more parameters and can also return a value. When a method returns a value, we call it a method with a return type. A method without parameters but with a return ... Read More

Java program to handle Unchecked Exception

Sakshi Ghosh

Sakshi Ghosh

Updated on 24-Sep-2024 21:43:45

1K+ Views

In this article, we will learn to handle Unchecked Exception in Java. Exceptions are the unexpected circumstances occurring during the implementation of the program i.e., at the run time, that interrupt the usual working of the program. It can occur due to various reasons such as Illegal input given ... Read More

Java Program to illustrate Total Marks and Percentage Calculation

Sakshi Ghosh

Sakshi Ghosh

Updated on 09-Jul-2024 16:03:18

5K+ Views

We will demonstrate how total marks and percentages are calculated using Java programs. The term total marks refer to the summation of all the available marks, while the term percentage refers to the number obtained by dividing the calculated marks by total marks and multiplying the resultant by 100. percentage_of_marks ... Read More

Java Program to Illustrates Use of Static Inner Class

Sakshi Ghosh

Sakshi Ghosh

Updated on 11-Aug-2023 14:30:01

197 Views

Here, we will demonstrate the usage of static inner class using the Java program. Before diving deep into the topic, let us get acquainted with the term Static Inner Class . Static Inner Class An inner class is the one, which is defined within another class. A Static Inner Class ... Read More

Java Program to illustrate the Usage of Hexadecimal

Sakshi Ghosh

Sakshi Ghosh

Updated on 11-Aug-2023 14:24:07

326 Views

Here, the usage of Hexadecimal shall be demonstrated through the Java Program. Let us get acquainted with the term Hexadecimal before seeing a Java program. The Hexadecimal is a type of number system that has a base value of 16. There are 16 symbols representing hexadecimal numbers. These symbols or ... Read More

Java Program to Illustrate the Availability of Default Constructor of the Super Class to the Sub Class by Default

Sakshi Ghosh

Sakshi Ghosh

Updated on 11-Aug-2023 14:04:10

156 Views

Here, we will demonstrate the availability of the default constructor of the super class to the sub class by default through Java Program. Before diving deep into the topic, let us get acquainted with the term Constructor, Super class, and subclass. Constructor A special method in Java is considered ... Read More

Java Program to Illustrate the usage of Octal Integer

Sakshi Ghosh

Sakshi Ghosh

Updated on 12-Apr-2023 12:30:06

241 Views

Octal Integer is a number system having a base of 8 and digits from 0 to 7. Int data type is taken into account to store an octal number. The usage of the Octal number system is to be discussed here − Converting decimal to Octal Converting octal to ... Read More

Java Program to Illustrate a Method without Parameters and Return Type

Sakshi Ghosh

Sakshi Ghosh

Updated on 11-Apr-2023 14:55:22

458 Views

First, let us get acquainted with the syntax, and examples, and then finally the implementation. The methods in Java are of great importance since it allows reusability of the same code, reducing the number of statements to be written within the code. There are three main parts of the method ... Read More

Java Program to Illustrate a Method with 2 Parameters and without Return Type

Sakshi Ghosh

Sakshi Ghosh

Updated on 11-Apr-2023 14:54:10

2K+ Views

A method without a return type is termed a void method since it returns nothing. This method can accept multiple parameters. In this tutorial, we will implement Java programs illustrating a method with two parameters and without return type. First of all, we are going to get acquainted with the ... Read More

1
Advertisements