Saturday, October 31, 2020

Operators and Expressions

Introduction 


Java Support rich set of operators. We have already used serval of them, such s +,=,- and * operator is a symbol that tell the computer to perform certain mathematical or logical manipulations.

Friday, October 30, 2020

Decision Making and Branching

 Introduction: - A java program is a set of statements, which are normally executed sequentially in the order in which they appear. This happens when options or repetition is certain calculations are not necessary. However, in practice, we have a number of situations,  where we may have to change the order of execution of statements based on certain conditions, or repeat a group of statements until certain specified conditions are met.

Thursday, October 29, 2020

Decision Making and looping

 Introduction: -  A computer is well suited to perform repetitive operations. It can do it tirelessly for 10, 100, or even 10,000 times. Every computer language must-have features that instruct a computer to perform such repetitive tasks. The process of repeatedly executing a block of statements is know as looping. The statement in the block may be executed any number of times, from zero to infinite number. If a loop continues forever, its is called an infinite loop.

Wednesday, October 28, 2020

Classes, Objects, and Methods

 Introduction: - Java is a true object Oriented language and therefore the underlying structure of all java programs is classes. Anything we wish to represent in a java program must be encapsulated in a class that defines the state and behavior of the basic program components know as objects. Classes create objects and objects use methods to communicate between them. That is all about object-oriented programming.


Class:-   Class is a blueprint of the object. Class is a way to binding data and associated methods in a single unit.

Method:- In object-oriented programming's generally, we write two types of methods. They are member method and non-member methods.