SlideShare a Scribd company logo
Core java
Started in the year 1991 
Sun Micro Systems 
Java 
J2SE(Standalone Apps) 
J2EE(Web Apps) 
J2ME (Mobile Applications) 
Platform Independent 
Portable 
Secure
Basic Pascal Fortran 
C C++ 
Data 
Functions Functions 
Functions Functions 
Functions Functions 
Functions Functions
Continue… 
Java Programming language 
Class 
Methods Methods 
Data 
Methods Methods
Core java
The rules the compiler uses to determine whether a name 
is legal. 
Identifiers must start with a letter, a currency character ($), or a 
connecting character such as the underscore ( _ ). Identifiers 
cannot start with a number. 
 After the first character, identifiers can contain any combination 
of letters, currency characters, connecting characters, or numbers. 
 In practice, there is no limit to the number of characters an 
identifier can contain. 
You can't use a Java keyword as an identifier. 
 Identifiers in Java are case-sensitive; foo and FOO are two 
different identifiers
Core java
Classes and Interfaces 
Ex: Dog, Account, PrintWriter,Runnable 
Methods 
Ex: getBalance, doCalculation, setCustomername 
Variables 
Ex:buttonWidth, accountBalance, myString 
Constants 
Ex: MIN_HEIGHT
Java 1.0 
Java 1.1 
Java 1.2 
Java 1.3 
Java 1.4 
Java 1.5 
Java 6 
Java 7
Java program is usually a collection of objects talking to 
other objects by invoking each others methods 
Class 
Object 
State (instance variables) 
Behavior(Methods)
Code Structure in java 
Compilation and Execution is done 
with the help of the following 
commands 
javac Demo.java 
java Demo 
Demo.java 
Java Compiler 
Demo.class(Bytecode) 
JVM(JDK,JRE) 
Executable code
Code Structure in Java 
Class Dog 
{ 
int size; 
String name; Instance Variables(state) 
String breed; 
public void bark() 
{ 
System.out.println(“Dog barks”); Methods(Behaviour) 
} 
}
Package and Import statements 
Packages is a group of classes and interfaces. 
Package should be declared as the first statement in java 
Package statement should be followed by the import 
statements. 
Import statement is mainly used for accessing the in-built 
methods
Private 
Public 
Protected 
Default
Abstract 
Transient 
Final 
Static
Core java

More Related Content

PPTX
Friend function & friend class
PPTX
Friend functions
PPTX
Object as function argument , friend and static function by shahzad younas
PPTX
Friend Function
PPTX
Class, object and inheritance in python
PPTX
Classes objects in java
PPT
friend function(c++)
PPT
Friends function and_classes
Friend function & friend class
Friend functions
Object as function argument , friend and static function by shahzad younas
Friend Function
Class, object and inheritance in python
Classes objects in java
friend function(c++)
Friends function and_classes

What's hot (20)

PPTX
Inner classes in java
PPTX
PPTX
Class and object
PDF
Chapter23 friend-function-friend-class
PPTX
Inheritance in c++
PPTX
Object Orinted Programing(OOP) concepts \
PPTX
Inheritance
PPT
Inheritance in c++ ppt (Powerpoint) | inheritance in c++ ppt presentation | i...
PPTX
C# classes objects
PPTX
Multiple inheritance possible in Java
PPTX
C# Inheritance
PPTX
Inheritance in oops
PPTX
Constructor in java
PPTX
EASY TO LEARN INHERITANCE IN C++
ODP
OOP java
PPTX
Inheritance, friend function, virtual function, polymorphism
PPTX
Abstract class in c++
PDF
Access specifiers (Public Private Protected) C++
PPTX
Polymorphism
DOCX
Nested class in java
Inner classes in java
Class and object
Chapter23 friend-function-friend-class
Inheritance in c++
Object Orinted Programing(OOP) concepts \
Inheritance
Inheritance in c++ ppt (Powerpoint) | inheritance in c++ ppt presentation | i...
C# classes objects
Multiple inheritance possible in Java
C# Inheritance
Inheritance in oops
Constructor in java
EASY TO LEARN INHERITANCE IN C++
OOP java
Inheritance, friend function, virtual function, polymorphism
Abstract class in c++
Access specifiers (Public Private Protected) C++
Polymorphism
Nested class in java
Ad

Viewers also liked (8)

PPT
Real-time Programming in Java
PPTX
Java Object-Oriented Programming Conecpts(Real-Time) Examples
DOC
Java project titles
PPTX
Core java
PPT
Presentation on java
PPTX
Final year IEEE,NON IEEE projects for 2013-14 for BCA,BTECH,Diploma,Mtech,MCA
KEY
Practical OOP In Java
PPTX
IoT in Healthcare
Real-time Programming in Java
Java Object-Oriented Programming Conecpts(Real-Time) Examples
Java project titles
Core java
Presentation on java
Final year IEEE,NON IEEE projects for 2013-14 for BCA,BTECH,Diploma,Mtech,MCA
Practical OOP In Java
IoT in Healthcare
Ad

Similar to Core java (20)

PPTX
Core Java Tutorials by Mahika Tutorials
PPTX
DAY_1.1.pptx
PDF
Java basic concept
PPTX
Modern_2.pptx for java
PDF
Overview of java Language-3.pdf
PPTX
Object Oriented Programming unit 1 content for students
PPSX
Hello Java-First Level
PPTX
PPTX
PDF
Introduction to Java Object Oiented Concepts and Basic terminologies
PPTX
Java basic
PPTX
PPT Lecture-1.2 java basics jvm, literals,
PDF
Basic Java Programming
PPTX
Full CSE 310 Unit 1 PPT.pptx for java language
PPTX
PPTX
Java OOP Concepts 1st Slide
PPTX
Std 12 Computer Chapter 7 Java Basics (Part 1)
PDF
Core Java Tutorial
PPTX
Java Technologies notes of unit 1 and 2.
PPTX
Lecture - 2 Environment setup & JDK, JRE, JVM
Core Java Tutorials by Mahika Tutorials
DAY_1.1.pptx
Java basic concept
Modern_2.pptx for java
Overview of java Language-3.pdf
Object Oriented Programming unit 1 content for students
Hello Java-First Level
Introduction to Java Object Oiented Concepts and Basic terminologies
Java basic
PPT Lecture-1.2 java basics jvm, literals,
Basic Java Programming
Full CSE 310 Unit 1 PPT.pptx for java language
Java OOP Concepts 1st Slide
Std 12 Computer Chapter 7 Java Basics (Part 1)
Core Java Tutorial
Java Technologies notes of unit 1 and 2.
Lecture - 2 Environment setup & JDK, JRE, JVM

Recently uploaded (20)

PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PDF
RMMM.pdf make it easy to upload and study
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PPTX
Lesson notes of climatology university.
PDF
Sports Quiz easy sports quiz sports quiz
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PPTX
GDM (1) (1).pptx small presentation for students
PPTX
Cell Structure & Organelles in detailed.
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PPTX
master seminar digital applications in india
PDF
Classroom Observation Tools for Teachers
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PDF
Anesthesia in Laparoscopic Surgery in India
PPTX
Institutional Correction lecture only . . .
PDF
Basic Mud Logging Guide for educational purpose
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PDF
TR - Agricultural Crops Production NC III.pdf
Pharmacology of Heart Failure /Pharmacotherapy of CHF
RMMM.pdf make it easy to upload and study
Supply Chain Operations Speaking Notes -ICLT Program
O5-L3 Freight Transport Ops (International) V1.pdf
Lesson notes of climatology university.
Sports Quiz easy sports quiz sports quiz
102 student loan defaulters named and shamed – Is someone you know on the list?
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
GDM (1) (1).pptx small presentation for students
Cell Structure & Organelles in detailed.
Final Presentation General Medicine 03-08-2024.pptx
master seminar digital applications in india
Classroom Observation Tools for Teachers
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
Anesthesia in Laparoscopic Surgery in India
Institutional Correction lecture only . . .
Basic Mud Logging Guide for educational purpose
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
TR - Agricultural Crops Production NC III.pdf

Core java

  • 2. Started in the year 1991 Sun Micro Systems Java J2SE(Standalone Apps) J2EE(Web Apps) J2ME (Mobile Applications) Platform Independent Portable Secure
  • 3. Basic Pascal Fortran C C++ Data Functions Functions Functions Functions Functions Functions Functions Functions
  • 4. Continue… Java Programming language Class Methods Methods Data Methods Methods
  • 6. The rules the compiler uses to determine whether a name is legal. Identifiers must start with a letter, a currency character ($), or a connecting character such as the underscore ( _ ). Identifiers cannot start with a number.  After the first character, identifiers can contain any combination of letters, currency characters, connecting characters, or numbers.  In practice, there is no limit to the number of characters an identifier can contain. You can't use a Java keyword as an identifier.  Identifiers in Java are case-sensitive; foo and FOO are two different identifiers
  • 8. Classes and Interfaces Ex: Dog, Account, PrintWriter,Runnable Methods Ex: getBalance, doCalculation, setCustomername Variables Ex:buttonWidth, accountBalance, myString Constants Ex: MIN_HEIGHT
  • 9. Java 1.0 Java 1.1 Java 1.2 Java 1.3 Java 1.4 Java 1.5 Java 6 Java 7
  • 10. Java program is usually a collection of objects talking to other objects by invoking each others methods Class Object State (instance variables) Behavior(Methods)
  • 11. Code Structure in java Compilation and Execution is done with the help of the following commands javac Demo.java java Demo Demo.java Java Compiler Demo.class(Bytecode) JVM(JDK,JRE) Executable code
  • 12. Code Structure in Java Class Dog { int size; String name; Instance Variables(state) String breed; public void bark() { System.out.println(“Dog barks”); Methods(Behaviour) } }
  • 13. Package and Import statements Packages is a group of classes and interfaces. Package should be declared as the first statement in java Package statement should be followed by the import statements. Import statement is mainly used for accessing the in-built methods