Category: Java
-
JavaVariables in Java
Variables represent named storage locations, whose values can be manipulated during the program run. For instance, to store the name…
April 21, 2022
-
JavaConstants in Java
In programming, a constant is an immutable entity. To put it another way, the value cannot be altered. In a…
April 26, 2022
-
JavaOperators in JAVA
The operators in Java represent the operations, i.e, operators perform operations on the operands. Let us discuss the various operators…
April 28, 2022
-
JavaOperator Precedence & Associativity
Operator precedence determines the order in which the operators in an expression are evaluated. Associativity rules determine the grouping of…
April 30, 2022
-
JavaType casting in Java
In Java, type casting is a method or process for manually and automatically converting one data type into another. The…
April 30, 2022
-
JavaSelection Statement
The selection statement allows choosing the set of instructions for execution depending upon an expression’s truth value. Java provides two…
April 30, 2022
-
Javaif-else ladder & nested if block
if-else ladder: The if-else-if ladder statement is used to test multiple conditions in Java. It’s used to test a single…
April 30, 2022
-
Javaswitch Statement
Java provides a multiple-branch selection statement known as a switch. This selection statement successively tests the value of an expression…
May 1, 2022
-
JavaThe switch vs if-else
The switch and if-else both are selection statements, and they both let you select an alternative out of the given…
May 4, 2022
-
JavaIteration Statements(Loops)
The iteration statements allow a set of instructions to be performed repeatedly until a certain condition is fulfilled. The iteration…
May 4, 2022
-
JavaMore about loops
Multiple initialization and update Expression: A for loop may contain multiple initialization and/or multiple update expression. Optional Expression: All the…
May 6, 2022
-
JavaJump Statements
The jump statements unconditionally transfer program control within a function. Java has three statements that perform an unconditional branch: return…
May 6, 2022