JEAD
Basic Concepts of Java
Objects and Classes: Java is an object-oriented language. Objects are
instances of classes, which define a blueprint for objects.
Inheritance: Allows a new class to inherit properties and methods from
an existing class. Promotes code reusability.
Encapsulation: Bundles the data (variables) and methods that operate
on the data into a single unit or class. Access to the data is restricted
through public methods.
- Santosh Katti, Department of Computer Applications, PESU
JEAD
Basic Concepts of Java
Polymorphism: Enables one interface to be used for a general class of
actions. The specific action is determined by the exact nature of the
situation.
Abstraction: Hides the complex implementation details and shows only
the essential features of the object.
- Santosh Katti, Department of Computer Applications, PESU
JEAD
Java Installation
• Download Java (oracle.com)
https://www.oracle.com/java/technologies/downloads/
• Installation Guide:
Overview of JDK Installation
- Santosh Katti, Department of Computer Applications, PESU
JEAD
Java Installation
• Set Environment variables – javac – (sys. Var / env var.) (jdk/bin)
• ‘javac’ and ‘java’
- Santosh Katti, Department of Computer Applications, PESU
JEAD
Assignment
• History of Java
• Differentiate between C, C++ and Java
• Editor (Gedit / Notepad++) for Unit-1 and Unit-2
• IDE (Prefer NetBeans – from Unit-3)
- Santosh Katti, Department of Computer Applications, PESU
JEAD
Summary
Students are required to summarise by answering questions
based on their understanding.
- Santosh Katti, Department of Computer Applications, PESU
JEAD
Java Coding conventions
Session 4 & 5:
- Santosh Katti, Department of Computer Applications, PESU
JEAD
Java Coding conventions
• Class names / Interface - Camel case starting with a UPPER CASE
• Method names / variable names – Camel case starting with “lower” case
• Constants – All UPER CASE letters with under-score as separator
- Santosh Katti, Department of Computer Applications, PESU
JEAD
Java Program structure
import java.lang.*; OR
import java.lang.System;
import java.lang.String;
class Test {
public static void main(String[] args) {
System.out.println(“Katti’s Java World”);
} }
- Santosh Katti, Department of Computer Applications, PESU