Posts

Showing posts with the label CORE JAVA

Core Java Tutorial for Beginners | English | Installation & Basics

Image
🚀 Core Java with Installation & Basics 1. Install Java a. Install JDK → Oracle JDK Downloads b. Install IntelliJ → IntelliJ IDEA Downloads c. Install Eclipse → Eclipse Downloads 2. Sample Code a) Functions A function is a block of code which takes some input, performs operations, and returns output. Functions stored inside classes are called methods . The most important one is main . b) Class A class is a group of objects with common properties. It can contain variables (properties) and methods (functions). Example: class Demo { public static void main (String[] args) { System.out.println( "Hello World!" ); } } c) Variables A variable is a container used to hold data. Each variable must have a unique name (identifier). d) Data Types Data types define the type and size of data associated with variables.  This determines the type and size of data associated with variables which is essential to know since different data types occupy different...

OOPs Concepts in Java | English | Object Oriented Programming Explained

Image
🔹OOPS (Object Oriented Programming System) in Java Object-Oriented Programming (OOPS) is a programming paradigm that uses classes and objects to design software. It simplifies development and maintenance by applying key concepts: 📌 Class: Class   is a user-defined data type which defines its properties and its functions. Class is the only logical representation of the data. For example, Human beings in an organisation is a class like Employee. The age, name, department, salary etc. of a human being/employee are its properties, and the jobs performed by the employees in an organisation are known as functions.  The class does not occupy any memory space till the time an object is instantiated. A class is a user-defined data type that defines properties and functions. For example: Class: Employee Properties: name, age, salary Functions: work(), attendMeeting() A class does not occupy memory until an object is created. ...