1 / 11

Java Environment

Java Environment. JDK, API, JVM. 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.

pakuna
Download Presentation

Java Environment

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  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. 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.lang Language Support Package - required for basic features of Java jJava.util Utilities Package - classes that provide functions like date and time functions java.io Input/OutputPackage - classes required for input/output javax.swing Swing Package -common GUI elements like dialog box java.net Networking Package - classes for communicating with other computers through network java.awt AWT Package - classes that allow GUI elements and graphics java.applet Applet Package - classes that allows to create Java applets

  6. Java Program Byte code Java Compiler Java Interpreter Virtual Machine Machine code 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). 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

More Related