Introduction to Object Oriented Programming Concepts in Java

Object Oriented Programming is used to represent the real world data. The main focus is on data. Simula is considered to be the first object oriented programming language. Object Oriented Programming Concepts There are 6 object oriented programming concepts in Java which are given below. Class Object Encapsulation Polymorphism Inheritance Abstraction Class Class is a …

Introduction to Object Oriented Programming Concepts in Java Read More »

Type Casting in Java

Converting one data type to another data type is known as type casting. Type Casting in Java is of two types i.e. Implicit Type Casting which is also known as Automatic Type Casting and Explicit Type Casting. Implicit or Automatic Type Casting In this, smaller data type is converted to bigger data type which is also …

Type Casting in Java Read More »

How to Write, Compile and Run Your First Java Program?

Before running Java programs you need to install and setup java. For installation guide read: Java Installation: Downloading, Installing and Setting Path How to write and run Java programs? Open notepad and write below program.   class demo {                 public static void main(String…S)                 {                                 System.out.println(“Java Programming”);                 } } Now save the file …

How to Write, Compile and Run Your First Java Program? Read More »