Unit 6 & 7 java programming

Class and object A class is a user defined data type which binds data and function into a single unit and objects are the instance of a class. A class is declared by use of the class keyword. The general form of a class definition is shown here:

The data, or variables, defined within a […]

Continue Reading

Unit 5 : Control Statements

Java’s Control Statements A programming language uses control statements to cause the flow of execution to advance and branch based on changes to the state of a program. Java’s program control statements can be put into the following categories: selection, iteration, and jump.  Selection statements allows program to choose different paths of execution based upon the outcome of […]

Continue Reading