Rabecca Fatima

Constructor in Java

Java constructors or constructors in Java are terminologies used to construct something in our programs. A constructor in Java is…

3 years ago

Methods in Java

A method is a block of code, a group of statements, or a set of code that performs a specific…

3 years ago

OOPs in Java

What is OOPs? Object-Oriented Programming is a methodology or paradigm for designing a program using classes and objects.  Many concepts, such…

3 years ago

Command Line Argument in Java

The java command-line argument is a parameter that is passed to the java program when it is run. The arguments…

3 years ago

Java object creation methods

Everything revolves around the object in Java, which is an object-oriented language. An object represents a class's runtime entity and…

3 years ago

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