Java Basics
Java Basics
Java Basics
JAVA BASICS
Presentation by
Mrs.S.Janani
Assistant Professor
Department of Information Technology
pc.fin@drsnsrcas.ac.in
Department of
IT
Information
Technology
Drsnsrcas/CPreprocessor/April 27, 2024 Slide No : 1
INTRODUCTION
Java is platform independent: the same program can run on any correctly
implemented Java system
• Java is object-oriented:
Structured in terms of classes, which group data with operations on that data
Can construct new classes by extending existing ones
• Java designed as
A core language plus
A rich collection of commonly available packages
Department of
www.snsgroup.com
IT Information
Technology
Drsnsrcas/CPreprocessor/April 27, 2024 Slide No : 2
INTRODUCTION
Department of
www.snsgroup.com
IT Information
Technology
Drsnsrcas/CPreprocessor/April 27, 2024 Slide No : 3
INTRODUCTION
Enterprise application :-
banking application,Business application.
Mobile.
Embedded system.
Games.
Robotics.
Department of
www.snsgroup.com
IT Information
Technology
Drsnsrcas/CPreprocessor/April 27, 2024 Slide No : 4
INTRODUCTION
Department of
www.snsgroup.com
IT Information
Technology
Drsnsrcas/CPreprocessor/April 27, 2024 Slide No : 5
INTRODUCTION
Department of
www.snsgroup.com
IT Information
Technology
Drsnsrcas/CPreprocessor/April 27, 2024 Slide No : 6
Begin with Java source code in
text files:
Model.java
A Java source code compiler
produces Java byte code
Outputs one file per class:
Model.class
May be standalone or part of an
IDE
A Java Virtual Machine loads and
executes class files
May compile them to native code
(e.g., x86) internally
Introduction to Java
Department of
www.snsgroup.com
IT
Information
Technology
Drsnsrcas/CPreprocessor/April 27, 2024 Slide No : 7
The Java API
API = Application Programming Interface
The import statement tells the compiler to make available classes and
methods of another package
Department of
www.snsgroup.com
IT Information
Technology Drsnsrcas/CPreprocessor/April 27, 2024
Slide No : 8
The Java
Department of
www.snsgroup.com
IT Information
Technology Drsnsrcas/CPreprocessor/April 27, 2024
Slide No : 9
METHODS
You can insert values or parameters into methods, and they will
only be executed when called
Department of
www.snsgroup.com
IT Information
Technology
Drsnsrcas/CPreprocessor/April 27, 2024 Slide No : 10
CLASSES
When defining a class, the data that it contains and the code that
operates on that data has to be specified.
Department of
www.snsgroup.com
IT Information
Technology
Drsnsrcas/CPreprocessor/April 27, 2024 Slide No : 11
CONTROL STATEMENT