




















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
This lecture was delivered by Aniruddh Parmar at B. R. Ambedkar Bihar University for Data Transfer Programming course. It includes: Introduction, Java, Computer, Program, Softwares, Instructions, High-level, Languages, Compiling, Source, Code
Typology: Slides
1 / 28
This page cannot be seen from the preview
Don't miss anything!





















Introduction to Java
Source File (^) Compiler Object File (^) Linker Excutable File
Compiling Java Source Code
You can port a source program to any machine with appropriate compilers. The source program must be recompiled, however, because the object program can only run on a specific machine. Nowadays computers are networked to work together. Java was designed to run object programs on any platform. With Java, you write the program once, and compile the source program into a special type of object code, known as bytecode. The bytecode can then run on any computer with a Java Virtual Machine, as shown in Figure Java Virtual Machine is a software that interprets Java bytecode.
Java Bytecode Java Virtual Machine Any Computer
Why Java?
Examples of Java’s Versatility
TicTacToe Standalone
SelfTest Website (using Java Servlets)
PDA and Cell Phone
Characteristics of Java
Neutral
Java is partially modeled on C++, but greatly simplified and improved. Some people refer to Java as "C++--" because it is like C++ but with more functionality and fewer negative aspects.
Characteristics of Java
Neutral
Java is inherently object-oriented. Although many object-oriented languages began strictly as procedural languages, Java was designed from the start to be object-oriented. Object-oriented programming (OOP) is a popular programming approach that is replacing traditional procedural programming techniques.
One of the central issues in software development is how to reuse code. Object- oriented programming provides great flexibility, modularity, clarity, and reusability through encapsulation, inheritance, and polymorphism.
Characteristics of Java
Neutral
You need an interpreter to run Java programs. The programs are compiled into the Java Virtual Machine code called bytecode. The bytecode is machine- independent and can run on any machine that has a Java interpreter, which is part of the Java Virtual Machine (JVM).
Characteristics of Java
Neutral
Java compilers can detect many problems that would first show up at execution time in other languages.
Java has eliminated certain types of error- prone programming constructs found in other languages.
Java has a runtime exception-handling feature to provide programming support for robustness.