Professional Documents
Culture Documents
Day1 Core Java
Day1 Core Java
1
Agenda
Introduction to Java
Features of Java
Java Development Kit
Variables and Data Types in Java
Operators in Java
Decision-Making Statements
Object Oriented Concepts in Java
Introduction to Java
What is Java?
Java was created by James Gosling in 1995 for Sun Microsystems
Java is a platform independent programming language that follows the
logic of Write once , Run anywhere”.
Features of Java Compiled &
Interepreted
Independent &
Scalability & Portable
Performance
Object –
Ease of Oriented
Development
Java
Dynamic & Robust & secure
Extensible
High Distributed
Performance
Multithreaded Simple
Java Development Kit
Fundamentals of Java
Variables
Keywords DataTypes
Basic
Fundamentals
Operators Identifiers
Literals
Keywords
• Keywords are the reserved words which are having predefined meaning in Java.
• All the keywords are defined in lower case and the meaning of these keywords can’t be modified.
• We cannot use keywords as names for variables, classes, methods, or as any other identifiers.
• const & goto are the keywords but no implementation available in Java. You cannot use in Java.
Identifiers
• By the name, it is clear that identifiers are used for identification purpose.
• Identifiers can be a class name, method name, variable name, or a label name.
Non-
Array
Primitive
Class
Data Types Default Values Range Default Size Example
10
&& (and) True if both the operands is true a<10 && a<20
Abstraction
Encapsulation
Inheritance
Polymorphism
23
Structure of
• Classes are user-defined data types that act as the blueprint for individual objects,
attributes and methods.
• Objects are instances of a class created with specifically defined data. Objects can
correspond to real-world objects or an abstract entity. When class is defined initially, the
description is the only object that is defined.
• Methods are functions that are defined inside a class that describe the behaviors of an
object.
24