Chapter 2


Published on

  • Be the first to comment

  • Be the first to like this

Chapter 2

  1. 1. History and development of Java
  2. 2. Araro Ariraro.mp3
  3. 3. Types of java ProgrammingStand alone• A program that is developed by the userInternet Applets• A program downloaded from the internet
  4. 4. Features of Java• Java is an object oriented programming language• It is both compiled and interpreted• It is platform independent• It is case sensitive• Access data from local system as well as from the net
  5. 5. Compiler and InterpreterSource Compiler/ Machine code Interpreter code
  6. 6. Byte code and JVM Windows 98 Java Java Java UnixSource Byte code Compiler Interpretercode Os2
  7. 7. Java Libraries• java.lang: Support classes containing String, Character, Math, Integer etc• : Support classes to deal with input and output statements• java.applet: Support classes to generate applet• Support classes for network related operations• java.awt: support abstract window toolkit and manages GUI• java.txt: supports text element such as date, time and currency• java.math: Support mathematical functions
  8. 8. Reserved words• Otherwise called as keywords• Preserved with the system• We cannot use these reserved words as variable or constant or other identifier names.
  9. 9. Comments statements in java• Purpose of action being taken in different steps• There are three kinds of comments in Java.• // - Single line• /*----------*/ - Multi line• /**------*/ - Documenting comment
  10. 10. Output statement in java• System.out.print();• System.out.println();
  11. 11. Java programming with BlueJ