




























































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Run the first Java ProgramIntroduce the basic debugging e.g. step into, step through, watching variables Significance of a ClassMain function inside a classKeywords associated with main function - public, static, voidDifferentiate Class and ObjectCreating class and creating objectsAdding members to the class - variables and methodsRunning a simple program with a class and objectsIntroduction to concepts of Encapsulation and AbstractionAccess Modifiers - private, public, static
Typology: Essays (university)
1 / 112
This page cannot be seen from the preview
Don't miss anything!





























































































Piani| Dubai| Goa | Hyderabad
BITS Pilani
Run the first Java Program Introduce the basic debugging e.g. step into, step through, watching variables
Main function inside a class Keywords associated with main function - public, static, void Differentiate Class and Object Creating class and creating objects Adding members to the class - variables and methods Running a simple program with a class and objects Introduction to concepts of Encapsulation and Abstraction Access Modifiers - private, public, static 2 2
Features of Java
Bytecodes
Compiled Languages
Text Editor Compiler linker
Programmer
Source Code
.c file
Object Code
.o file
Notepad, emacs,vi
gcc
Executabl e Code
a.out file
generated after the Java programs are compiled. This is the intermediate representations of Java programs. Bytecode is NOT executable code like “.exe” but this is java propriety intermediate code. Bytecode
Platform Independence
Java Virtual Machine - JVM
The Java Virtual Machine
Class loader
Execution engine
Host operating system
Program Class files
The Java API’s class files
Native methods invocation
The Bytecode :
Java Virtual Machine(JVM ):
platform.
platform to platform, all interpret the same java bytecode.
Two Paradigms
Process-Oriented model
Object- Oriented programming
Encapsulation
together code and the data. It manipulates and keeps both safe from outside interference and misuse (protective wrapper)
tightly controlled through a well-defined interface.
For example in a car shifting gears does not turn on the headlights.
Polymorphism
interface to
be used for a general class of actions. The specific action
is determined by the exact nature of the situation.
Java Program Structure
contains a method called main() in one of its class.