1 / 5

JAVA

JAVA. Java is a programming language and computing platform first released by Sun Microsystems in 1995. It was first developed by James Gosling at Sun Microsystems , which is now a part of Oracle Corporation .

dafydd
Download Presentation

JAVA

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 • Java is a programming language and computing platform first released by Sun Microsystems in 1995. • It was first developed by James Gosling at Sun Microsystems, which is now a part of Oracle Corporation. • Java applications are usually compiled to bytecode (class file) that can run on any Java Virtual Machine (JVM). • Java is a pure object-oriented language. This means that everything in a Java program is an object and everything is descended from a root object class. • The Java programming Language evolved from a language named Oak. • Java compilers do not produce native object code for a particular platform but rather ‘byte code’ instructions for the Java Virtual Machine (JVM). Making Java code work on a particular platform is then sim ply a matter of writing a byte code interpreter to simulate a JVM. What this all means is that the same compiled byte code will run unmodified on any platform that supports Java.

  2. Java class library • Rich Standard Library - One of Java’s most attractive features is its standard library. The Java environment includes hundreds of classes and methods in six major functional areas. Language Support classes for advanced language features such as strings, arrays, threads, and exception handling. • Utility classes like a random number generator, date and time functions, and container classes. • Input/output classes to read and write data of many types to and from a variety of sources. • Networking classes to allow inter-computer communications over a local network or the Internet. • Abstract Window Toolkit for creating platform-independent GUI applications. • Applet is a class that lets you create Java programs that can be downloaded and run on a client browser.

  3. Difference between JRE and JDK • The jre is intended only for executing already compiled java class and lacks a compiler

  4. Setting up the environment variables • PATH=java_install_dir/bin • CLASSPATH=java_install_dir/lib • JAVA_HOME=java_install_dir NOTE: java_home refers to the base sdk installation directory • Note: to verify that the java setup is correct open your command prompt window and type: • Java –version • Javac -help

  5. The –d option of javac • javac will automatically put packaged classes in subdirectories that match the package name • However javac has an option (-d) that lets you designate a different lcation for class files e.g. javac –d install_dir/webapps/ROOT/WEB-INF/classes HelloServlet2.java

More Related