core java

Java Arrays

An array is a collection of variables of the same type that are referenced by a common name. Arrays consist…

3 years ago

Jump Statements

The jump statements unconditionally transfer program control within a function. Java has three statements that perform an unconditional branch: returnbreakcontinue…

3 years ago

More about loops

Multiple initialization and update Expression: A for loop may contain multiple initialization and/or multiple update expression. for(i=1,sum=0;i<=n;sum+=i,++i) System.out.println(i); Optional Expression:…

3 years ago

Iteration Statements(Loops)

The iteration statements allow a set of instructions to be performed repeatedly until a certain condition is fulfilled. The iteration…

3 years ago

The 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…

3 years ago

switch Statement

Java provides a multiple-branch selection statement known as a switch. This selection statement successively tests the value of an expression…

3 years ago

if-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…

3 years ago

Selection Statement

The selection statement allows choosing the set of instructions for execution depending upon an expression's truth value. Java provides two…

3 years ago

Type casting in Java

In Java, type casting is a method or process for manually and automatically converting one data type into another. The…

3 years ago

Operator Precedence & Associativity

Operator precedence determines the order in which the operators in an expression are evaluated. Associativity rules determine the grouping of…

3 years ago