Download presentation
Presentation is loading. Please wait.
Published byLaurence Lester Modified over 9 years ago
1
JAVA ENVIRONMENT JDK, API, JVM
2
JAVA ENVIRONMENT Java environment includes development tools and many classes and methods. Java Environment JDK (Java Development Kit) JSL (Java Standard Library) or Application Programming Interface (API) Development tools Classes and methods
3
(JAVA DEVELOPMENT KIT) JDK (JAVA DEVELOPMENT KIT) JDK is collection of tools used for developing and running Java programs. They include appletviewer-for viewing Java applets javac -Java compiler which translates Java source code to byte code files that the interpreter can understand java-Java interpreter which runs applets & applications by interpreting byte codes. javadoc -Creates HTML format documentation from Java source code files javah-Produces header files for use with methods jdb-Java debugger, which helps to find errors in programs These tools are used to build and run application programs.
4
a)To create a java program, create a source file using ___________ b) The source code is compiled using _________to ____________ c) The byte code is interpreted using ____________ and executed. d) The jdb is used to find ______________, if any.
5
API APPLICATION PROGRAMMING INTERFACE The API includes hundreds of classes and methods grouped into several packages. Commonly used packages are: java.langLanguage Support Package - required for basic features of Java jJava.utilUtilities Package - classes that provide functions like date and time functions java.ioInput/Output Package - classes required for input/output javax.swingSwing Package- common GUI elements like dialog box java.netNetworking Package - classes for communicating with other computers through network java.awtAWT Package - classes that allow GUI elements and graphics java.appletApplet Package - classes that allows to create Java applets
6
JVM JAVA VIRTUAL MACHINE Byte code is generated for Java Virtual machine. JVM is not a machine but a program that resides in computer memory. The byte code is common for all machines. Java interpreter acts as a link between particular machine and byte code to make machine code (machine language). Java Program Java CompilerVirtual Machine Byte codeJava InterpreterMachine code Byte code Virtual machine
7
EXERCISE Classes and methods of Java are part of a) JSL b) JDK c) JVM
8
EXERCISE The tool that is present in JDK is used for viewing Java applets a) applet viewer b) applet c) javac
9
EXERCISE Java interpreter which runs applets & applications by reading and interpreting byte codes. a) java b) javac c) jdb
10
EXERCISE The Java debugger, which helps to find errors in programs is a) javadoc b) jdb c) javah
11
The package which has classes for communicating with other computers through network a) Input/Output package b) AWT package c) Networking package
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.