This document provides an introduction to the Java programming language. It discusses key Java concepts like high-level vs low-level languages, common programming languages, how Java works by compiling to bytecode and using a virtual machine, and why Java was created. It also includes a simple "Hello World" Java program example to demonstrate Java syntax and how to compile and run a Java program.
Objective of this article is to share internal architecture details of Java Virtual Machine. Focuses on:
- How many component does JVM has?
- How these component are integrated?
- How processing takes place at run time for classes?
Learn what a Java Virtual Machine (JVM) is and what it does for your Java applications in this webinar. Eva Andreasson of Azul Systems provides insights into the inner workings of a Java Virtual Machine and some drill down on what compilers and garbage collectors do, so that you don’t have to worry about it while programming your Java application. In particular, you will learn about common optimizations, well established garbage collection algorithms, and what the current biggest challenge with Java scalability is today.
Objective of this article is to share internal architecture details of Java Virtual Machine. Focuses on:
- How many component does JVM has?
- How these component are integrated?
- How processing takes place at run time for classes?
Learn what a Java Virtual Machine (JVM) is and what it does for your Java applications in this webinar. Eva Andreasson of Azul Systems provides insights into the inner workings of a Java Virtual Machine and some drill down on what compilers and garbage collectors do, so that you don’t have to worry about it while programming your Java application. In particular, you will learn about common optimizations, well established garbage collection algorithms, and what the current biggest challenge with Java scalability is today.
JDK stand for java development kit.
JVM stands for Java Virtual Machine.
JRE is the responsible unit to run the java program.
JIT stands for Just In Time compiler.
Core java environment setup and detailse-visionlabs
This presentation includes the installation of core java environment set up with screenshots.
This will give detailed view on how to install and start working on core java environment.
e-vision labs is a software training institute in Trivandrum providing 100% placement support to all students.
Previously we had begin with Java Tutorial beginners guide featuring – What is Java , features of Java Programming Language , Java editors and different Java editions and Java Application Types . Now on Java tutorial we begin with the section 2 that is about JVM – Java Virtual Machine . And also about the difference between JDK Vs JRE Vs JVM including other aspects of Java Virtual Machine .
https://maccablo.com/java-virtual-machine-jdk-jre-jvm/
JDK stand for java development kit.
JVM stands for Java Virtual Machine.
JRE is the responsible unit to run the java program.
JIT stands for Just In Time compiler.
Core java environment setup and detailse-visionlabs
This presentation includes the installation of core java environment set up with screenshots.
This will give detailed view on how to install and start working on core java environment.
e-vision labs is a software training institute in Trivandrum providing 100% placement support to all students.
Previously we had begin with Java Tutorial beginners guide featuring – What is Java , features of Java Programming Language , Java editors and different Java editions and Java Application Types . Now on Java tutorial we begin with the section 2 that is about JVM – Java Virtual Machine . And also about the difference between JDK Vs JRE Vs JVM including other aspects of Java Virtual Machine .
https://maccablo.com/java-virtual-machine-jdk-jre-jvm/
this slide contains about basic introduction of java.it will be helpful for a java beginner. it also useful for java lecture course in your versity.programming with java is very essential for every student.this silde may help you to progress your skill & lernt abc about java.
this slide is about java introductory.it will be helpful for you to know abc of jaba.it also be helpful for u in your versity java course.programming with java is very important for every student.java freshers can grabbed it easily
3. What is Programming Language
• High Level Language & Low Level
Language
C++, C, FORTRAN, PASCAL
Assembly Language or Machine Language
• High Level Language Better or Low Level
Language.
INTRODUCTION TO JAVA PROGRAMMING
4. Programming languages: A Review
• FORTRAN • Ada
• COBOL • SQL
• BASIC • Lisp
• Z80 assembler • Prolog
• IBM 360 assembler • Eiffel
• PL1 • HTML
• SL1 • JavaScript
• C • Java
• Pascal • Jess
• SNOBOL
INTRODUCTION TO JAVA PROGRAMMING
5. Discussion Points
• Different levels: high - low
• Different implementations: interpreted, compiled
• Different paradigms: procedural, declarative,
object oriented
• Different target domains: data processing,
scientific, database manipulation, string
manipulation, logic, general purpose …
• Different ages: modern/ old fashioned; longevity
• Different language features/ constructs
INTRODUCTION TO JAVA PROGRAMMING
6. Common Grounds
• Handle data: variables
• Handle flow of control:
– sequence, selection, iteration
• Shared code: sub routines
• Data structures: arrays
• File handling
INTRODUCTION TO JAVA PROGRAMMING
10. Program
• A program is a sequence of instructions that specifies
how to perform a computation.
BASIC Operations in Program:
• Input
• Output
• Mathematical Operations
• Testing
• Repetition
“Programming can also be described as the process of
breaking a large, complex task up into smaller and smaller
subtasks until eventually the subtasks are simple enough to
be performed with one of these basic operations.”
INTRODUCTION TO JAVA PROGRAMMING
11. Debugging
• Bugs and Errors
• Types of Errors
Compile Time Errors
Run Time Errors
Logic and Semantic Error
• Experimental Debugging
INTRODUCTION TO JAVA PROGRAMMING
12. A First Program
• Print “Hello World” to the console
/*
* HelloWorld.java
*
* Created on 19 Sep 2010, 17:56
*/
class HelloWorld {
public static void main (String args[]) {
System.out.println("Hello World!");
}
}
INTRODUCTION TO JAVA PROGRAMMING
13. First Steps...
• A Java application is made up of a
collection of classes
• Normally, one (& only one) of these classes
should have a method called main
• Console output can be achieved using:
System.out.print(“a string”);
or
Err or
println
or a
variable
INTRODUCTION TO JAVA PROGRAMMING
14. Compiling First Program
• The file name of this program is:
HelloWorld.java
• To compile the program, type:
javac HelloWorld.java
• To run the program, type:
java HelloWorld
• Output should be:
Hello World!
INTRODUCTION TO JAVA PROGRAMMING
15. The JAVA Virtual Machine
• Java is compiled into an intermediate form
(bytecode)
• These are the .class files produced by javac
• The bytecode is interpreted at runtime by
the Java Virtual Machine
• Java compiled on one machine (type) can be
executed on another (type)
INTRODUCTION TO JAVA PROGRAMMING
16. Standard Java Tools (Java 2 SDK)
• javac - the compiler
• java - the launcher for Java apps
• javadoc - API documentation generator
• appletviewer - run & debug applets without
a browser
• jar - manage Java Archive (JAR) files
• jdb - Java debugger
• javap - class file dis assembler
• ++
INTRODUCTION TO JAVA PROGRAMMING
17. JDK Kits and Editors
• J2SE Available on Sun Website
• Editors: Stick with javac, java & your
chosen editor (PFE, notepad, JCreator, …)
• Java Keywords: 48 reserved Keyword in
Java Language.
List can be checked at
http://java.sun.com/docs/books/jls/second_e
dition/html/lexical.doc.html
INTRODUCTION TO JAVA PROGRAMMING