1 / 11

Java means Coffee Java Coffee Beans

Java means Coffee Java Coffee Beans. The name “JAVA” was taken from a cup of coffee. Introduction to JAVA. High Level Programming Language (HLL) Java , released in 1995, is a relatively new programming language.  

xiu
Télécharger la présentation

Java means Coffee Java Coffee Beans

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 means Coffee Java Coffee Beans The name “JAVA” was taken from a cup of coffee

  2. Introduction to JAVA • High Level Programming Language (HLL) • Java, released in 1995, is a relatively new programming language.   • Developed by James Gosling from Sun Microsystems and his team

  3. Creating a Java Program .java javac .class java

  4. Java Program: a set of instructions for the computer to follow.  The source code. Saved as filename.java • Data: data for the Java program • Java Compiler (javac):translates the program from Java to a language that the computer can understand.  • Byte Code Program:  the compiler translates Java into a language called byte-code.  Byte code is the machine language for Java Virtual Machine (JVM). filename.class • Byte Code Interpreter (java):the interpreter (JVM) translates byte code into machine language (.exe) • Machine Language:  is the language the computer understands.

  5. Parts of a Java Program This is same as header file in C. This package is used for input and output. 

  6. Parts of a Java Program Every Java program is a class.   The program starts with the name of the class.   The class name must be the same as the . java file you save.

  7. Parts of a Java Program A main method is needed for execution to start.  This main method gets executed first.  The array of strings parameter is must.

  8. Parts of a Java Program Output statements:  the basic output statement in Java is the System.out.println( )   or System.out.print( )

  9. Variables Most Often Used

  10. Constant Variables • Constant is a variable whose value does not change in the program. Eg: PI = 3.14 The keyword ‘final’ is used to define constant in Java Eg. final intcount = 100; final double PI=3.14;

More Related