Sakshi Ghosh has Published 12 Articles

Java Program to Illustrates Use of Static Inner Class

Sakshi Ghosh

Sakshi Ghosh

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

91 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 Total Marks and Percentage Calculation

Sakshi Ghosh

Sakshi Ghosh

Updated on 11-Aug-2023 14:28:54

491 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 illustrate the Usage of Hexadecimal

Sakshi Ghosh

Sakshi Ghosh

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

96 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

62 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 Escaping Characters in Regex

Sakshi Ghosh

Sakshi Ghosh

Updated on 11-Aug-2023 13:03:31

353 Views

Here, we will demonstrate escaping characters in Regex through Java Program. Before diving deep into the topic, let us get acquainted with the term Escaping Characters and Regex. Regex It is an acronym for a Regular expression. It is an API that offers users to define String patterns that ... Read More

Java Program to Illustrate String Interpolation

Sakshi Ghosh

Sakshi Ghosh

Updated on 12-Apr-2023 12:34:17

610 Views

String interpolation is a concatenation technique considered to display output text dynamically or effectively by replacing the placeholder characters with variables (or strings in the subsequent examples). String interpolation restructures the code and prevents the need to repeatedly use variables to produce the output. It makes it efficient to ... Read More

Java Program to Illustrate Use of Binary Literals

Sakshi Ghosh

Sakshi Ghosh

Updated on 12-Apr-2023 12:32:32

317 Views

A binary literal is a number that is denoted using binary digits that are 0s and 1s. The values written in data types – byte, int, long, and short can be easily expressed in a binary number system. The prefix 0b or 0B is added to the integer to ... Read More

Java Program to Illustrate the usage of Octal Integer

Sakshi Ghosh

Sakshi Ghosh

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

138 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 but with Return Type

Sakshi Ghosh

Sakshi Ghosh

Updated on 11-Apr-2023 14:58:20

3K+ 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 Illustrate a Method without Parameters and Return Type

Sakshi Ghosh

Sakshi Ghosh

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

224 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

Advertisements