Posts

Showing posts with the label JRE

🎯🎯 DAY 3- INTRODUCTION TO JAVA (II) 🎯🎯

Image
Yho Codestars!  It's day 3 and I still feel quite energetic👶 . So here is what I learned today, feel free to comment and follow my blog😁 . Today's JAVA lesson! The basic element of Java:  Java has 3 basic elements; Class, Interface, and Enum. We can only write a java program with the aid of these 3 elements, without class and interface, there is no Java program. Syntax of the basic elements: Syntax is a set of rules we need to follow when writing a program. Class <Acess modifier> class <class name> { } Interface <Acess modifier> interface < interface name> { } Enum <Acess modifier> enum < enum name> { } Access modifiers provide access restrictions to a class. There are 4 types of access modifiers; Public Private  protected  Default We cannot declare a Java class as private, or protected, the same goes for interface and enum. Examples of the basic element's syntax:      The example in the fi...

🎯🎯DAY 1- INTRODUCTION TO JAVA🎯🎯

Image
Yho Codestars!  It's day 1 and I have studied for several hours today, I feel good and I need no coffee😊.  Today's JAVA Lessons Learned! JAVA is not an acronym, James  Gosling chose the name Java, this is named after the JAVA Island in Indonesia where the first coffee was produced. Characteristics of JAVA Simple, object-oriented, dynamic, interpreted, strongly typed, robust, portable, secured, platform-independent, multithreaded, architecture-neutral. Everything in JAVA is an object except the fundamental types; which includes the primitive data and their corresponding wrapper classes /reference types. Java is a strongly typed language means that every variable must be declared with a data type, the data type must match the declared variable else the compiler will throw an error. 3 phases in Java: Write Compile Run JAVA writes text files (in Java language), JAVAC (JAVA Compiler) compiles programs as input and generates byte codes as output, and JVM executes the bytecode ...