BASICS OF JAVA (PART 2)

DATA TYPES IN JAVA A data type represents the different values to be stored in the variable. In java, there are two types of data types: Primitive data types Non-primitive data types Primitive data types These are built in data types provided by the programming language. Java uses six predefined data types, called primitive numericalContinue reading “BASICS OF JAVA (PART 2)”

BASICS OF JAVA (PART 1)

Any java program can contain any of the following component in their program structure Java statements Expressions Variables Data types Comments Literals Operators Java statements Statement forms a single Java operation. The following are simple Java statements: int age= 23; import java.util.Scanner; System.out.println(” My name is” + name); m.engineState = true; Each statement ends withContinue reading “BASICS OF JAVA (PART 1)”

HOW TO WRITE AND COMPILE JAVA PROGRAM

The tools that you will need to write your Java programs are as follow JDK https://www.oracle.com/technetwork/java/javase/downloads/jdk-netbeans-jsp-3413139-esa.html Netbeans https://netbeans.org/downloads/8.2/rc/ Download the above tools and install them on you PC Why are we going to use Netbeans IDE? IDE stands for integrated development environment and below are some of the advantages of the IDE It is aContinue reading “HOW TO WRITE AND COMPILE JAVA PROGRAM”

INTRODUCTION TO OBJECT ORIENTED PROGRAMMING

Object oriented programming Creating a computer program as a collection of modules which are abstractions of real world objects. OOP was invented to remove flaws encountered in the procedural approach, OOP allows decomposition of a problem into a number of entities called objects and then builds data and functions around these objects. Features of OOPContinue reading “INTRODUCTION TO OBJECT ORIENTED PROGRAMMING”

Design a site like this with WordPress.com
Get started