Posts

Java Object/ Class/ Object generating

Image
📍Object What is an object: A Java object  is a member of a Java class(Object is created from a class). Each object has properties and behaviors. The properties of an object is stored in variables , while methods display the object's  behavior. 🔰For example in real life, Car is Object. The car has properties (variable) such as weight and color, and behavior (method), such as drive and brake.  🌟a class is the definition or template,and an object is an instance of that definition.  📍 Create an object 🌟 You can create multiple objects of one class.  In order to create an object, a class should be based(Because the coding implement of the object concept is the class), and the class to be based is called a "Class reference". The object must have a name(Need to give variable name). new  keyword is definitely use to generate an object(new keyword-object generate - JDK pre-build). The constructor of the class reference is required. Class reference(left side) "a...

Standards of Java

 🍵Let us dive into some of the important standards being followed across the JAVA  programming language. ⭕There are 4 basic concepts of java  language... They can be defined as class, method, variable and object. Most computer languages contain these 4 parts. The most important thing is all basic concepts are defined as objects. In the java programming language, these parts can be devided into a hierarchy in order.  The order of:                                           ➢object                                               ➢class                                             ➢method            ...

Java basics

Java  is high-level, object-oriented, platform independece programming language. Java was the third most popular programming language in 2022 according to GitHub. Java created by James Gosling  at Sun Microsystem.  It was released in may 1995 as a core component of Sun's Java platform. Java follows the object-oriented paradigm, which means it revoves around objects and classes. This approach helps in organizing code in a more manageable and reusable way.  One of Java's standout feature is its platform independece. Java code is compiled into bytecode, which can run on any system that has a Java Virtual Machine(JVM). This principle is often summed up by the phrase "Write ones, Run Any Where"(WORA) Java includes strong memory management, exception handling and type checking reliable and bug-free code. It also provides a secure execution environment by running programs inside the jvm.  As of March 2024 Java 22 is the latest version Java 8,11,17 and 21 are previous L...