The purpose of learning to code is to instruct a
computer to perform a specific task that is very
    tedious and time consuming when it is done
    manually. Java programming language was chosen to
    learn basic coding skills because,
   it is easy to learn and get an idea about an Object
    Oriented Programming language
   it is a platform independent language - a code
    written in one platform can run in other platforms
    without many modifications to the original source
    code.
   it is used for developing all types of cross-platform
    Desktop applications, Apps for Mobiles and Dynamic
    web applications
Students should be able to:
 identify the application areas of Java
 compare different types of programming languages and their
  compilation processes
 understand the compilation process in Java
 understand the structure of a Java program and know the
  basic rules that need to be followed to write a program in Java
 identify the building blocks (tokens) in a Java program and
  use them appropriately in a program
 declare variables and constants appropriately using the
  concept of Data types
 identify the purpose of constants
 identify the purpose of comments and its usefulness in
  documenting programs
 create simple Java programs, compile them and execute the
  code
   To understand the history & features of Java.
   To demonstrate the first program in BlueJ
   https://www.youtube.com/watch?v=2TZMjm
    p6Vts
                                                      LEARNING INTENTION
                         The purpose of learning to code is to instruct a computer to perform a
                          specific task that is very tedious and time consuming when it is done
                          manually. Java programming language was chosen to learn basic coding
                          skills because,
                         it is easy to learn and get an idea about an Object Oriented Programming
                          language
                         it is a platform independent language - a code written in one platform can
                          run in other platforms without many modifications to the original source
                          code.
                         it is used for developing all types of cross-platform Desktop applications,
                          Apps for Mobiles and Dynamic web applications
                           OOP
                        language
                        3GL eg.of
                          object
     Internet           Bank a/c
                                                Open
      Games
                                               source
    apps uses
                                              software
       Java
                        About
                                                   James
 Taken
over by                 JAVA                    Gosling, Mike
                                                  Sheridan,
Oracle in
                                                 and Patrick
 2010
                                                  Naughton
             Java by
               Sun                  Earlier
            Microsyst               name-
             ems in                  OAK
              1991
                 WORA
                 Platform
               independent
                                  Light
  Secure                         weight
                                  code
             Characteristics
                of Java
                                  OOP
 Supports
                               language-
multimedia
                               near to real
-Java APIs
                                 world
                 Built in
                graphics-
                Graphics
                  class
   Write Once Run Anywhere
    ◦ Java programs written for one platform can run on
      different platforms without any changes made to it.
      It is said to be Platform Independent
   Light Weight Code
    ◦ Big and useful applications can be created with very
      light code.
   Security
    ◦ Java offers many security features that makes its
      programs safe and secure
   Object Oriented Programming Language
    ◦ It supports Object Orientation concepts, thereby
      very near to real world.
   Built-in Graphics
    ◦ Java offers many built-in graphic features that can
      be used to make Java application more visual
   Supports Multimedia
    ◦ Java is ideally suited for integration of video, audio,
      animation and graphics in Internet environment
                                              LEARNING INTENTION
                                    The purpose of learning to code is to
                                     instruct a computer to perform a specific
                                     task that is very tedious and time
                                     consuming when it is done manually. Java
                                     programming language was chosen to learn
                                     basic coding skills because,
   ASCII CODES/UNICODE             it is easy to learn and get an idea about an
                                     Object Oriented Programming language
     A-Z(65-90)
                                    it is a platform independent language - a
                                     code written in one platform can run in
                                     other platforms without many modifications
     a-z(97-122)
                                     to the original source code.
                                    it is used for developing all types of cross-
                                     platform Desktop applications, Apps for
     0-9(48-57)                     Mobiles and Dynamic web applications
     Space (32)
    ASCII- AMERICAN STANDARD CODE FOR
    INFORMATION INTERCHANGE
    VIDEO EXPLANATION OF THE DIFFERENCE-
    https://www.youtube.com/watch?v=5aJKKgSEUnY
   BlueJ demonstration
   Important naming conventions and syntax
                                                       LEARNING INTENTION
                          The purpose of learning to code is to instruct a computer to perform a
                           specific task that is very tedious and time consuming when it is done
                           manually. Java programming language was chosen to learn basic coding
                           skills because,
                          it is easy to learn and get an idea about an Object Oriented Programming
                           language
                          it is a platform independent language - a code written in one platform can
                           run in other platforms without many modifications to the original source
                           code.
                          it is used for developing all types of cross-platform Desktop applications,
                           Apps for Mobiles and Dynamic web applications
   Go ahead and read Session-2. Make your
    running notes and list down any doubts if you
    have.
   To understand the compilation process in
    Java
   Types of Java programs
   Java fundamentals for coding
                                                        LEARNING INTENTION
                           The purpose of learning to code is to instruct a computer to perform a
                            specific task that is very tedious and time consuming when it is done
                            manually. Java programming language was chosen to learn basic coding
                            skills because,
                           it is easy to learn and get an idea about an Object Oriented Programming
                            language
                           it is a platform independent language - a code written in one platform can
                            run in other platforms without many modifications to the original source
                            code.
                           it is used for developing all types of cross-platform Desktop applications,
                            Apps for Mobiles and Dynamic web applications
   A Java Program (source code) is compiled by
    the Java Compiler into Java Byte Code. It is the
    intermediate code.
   The byte code is the same on every platform.
    Hence it is also known as the portable code.
   The byte code is then interpreted by a special
    Java interpreter for a specific platform, that
    translates it to the native code of the host
    machine and executes.
   The Java Virtual Machine (JVM) is a platform
    specific interpreter for the byte code.
   JVM translates the byte code into the native
    language of the host machine and executes.
   Java is said to be portable as it allows
    programmers to write code that could run on
    any platform without the need for rewriting or
    recompilation for each separate platform.
   The byte code and the JVM make this possible.
   The Java virtual machine (JVM) interprets
    compiled Java bytecode for a computer's
    processor (or "hardware platform") and translates
    into the native code and executes it.
   Java requires an editor to create the source program. The
    program written using the editor has to have the same name
    as that of the defined class within the program.
   All programs written in Java must have the extension “java”.
   The execution of the Java application program is made
    through the combination of compilation and interpretation.
   The Java compiler is a file called javac. After compilation, a
    file with the secondary name class is created. This is called
    as the Byte Code.
   The Java interpreter is a file called java. It interprets the class
    file and executes it.
   Stand alone applications
      Are programs that can run on any platform
       independently without requiring any software.
      Includes customized software applications or
       generalized software applications like word
       processors, spreadsheets etc., that can run on any
       platform like Windows, Linux or Mac OS
                                                              LEARNING INTENTION
                                 The purpose of learning to code is to instruct a computer to perform a
                                  specific task that is very tedious and time consuming when it is done
                                  manually. Java programming language was chosen to learn basic coding
                                  skills because,
                                 it is easy to learn and get an idea about an Object Oriented Programming
                                  language
                                 it is a platform independent language - a code written in one platform can
                                  run in other platforms without many modifications to the original source
                                  code.
                                 it is used for developing all types of cross-platform Desktop applications,
                                  Apps for Mobiles and Dynamic web applications
 James
 Gosling                                   Dennis
                                           Ritchie
       Less
       security                                    Object
                                                   oriented
                                          Oracle
 Platform
 independent
                                               OAK
Uses Object
code
               Only uses
                           Sun
               compiler
                           Microsystems
   Java Compiler provided By Oracle is written in
    Java itself..
   The Sun JVM is written in C.
   The Oracle JVM (HotSpot) is written in
    the C++ programming language .
                                                         LEARNING INTENTION
                            The purpose of learning to code is to instruct a computer to perform a
                             specific task that is very tedious and time consuming when it is done
                             manually. Java programming language was chosen to learn basic coding
                             skills because,
                            it is easy to learn and get an idea about an Object Oriented Programming
                             language
                            it is a platform independent language - a code written in one platform can
                             run in other platforms without many modifications to the original source
                             code.
                            it is used for developing all types of cross-platform Desktop applications,
                             Apps for Mobiles and Dynamic web applications
   A lightweight programming language is one
    that is designed to have very small memory
    footprint, is easy to implement (important
    when porting a language), and/or has
    minimalist syntax and features.
   Java compiler converts the Java code into byte
    code (.class file) and these byte codes are
    then run by Java Virtual Machine (JVM) . JVM is
    an interpreter which is installed in each client
    machine that is updated with latest security
    updates by internet . When this byte codes
    are executed , the JVM can take care of the
    security. So, java is said to be more secure
    than other programming languages.
   Java Multimedia APIs like:-
    ◦   Java   2D
    ◦   Java   3D
    ◦   Java   Sound
    ◦   Java   Speech
    ◦   Java   Telephony
    API-Application Programming Interface
    Eg. Waiter is a messenger
                            
                                                            LEARNING INTENTION
                                The purpose of learning to code is to instruct a computer to perform a
                                specific task that is very tedious and time consuming when it is done
                                manually. Java programming language was chosen to learn basic coding
                                skills because,
                               it is easy to learn and get an idea about an Object Oriented Programming
                                language
                               it is a platform independent language - a code written in one platform can
                                run in other platforms without many modifications to the original source
                                code.
                               it is used for developing all types of cross-platform Desktop applications,
                                Apps for Mobiles and Dynamic web applications
   BlueJ is basically an IDE (Integrated
    Development Environment) for Java.
   It allows the user to edit, compile, interpret
    and debug the Java Programs.
    Bluej Demonstration