Page 8 - DCAP501_Modern Programming Tools and Techniques I
P. 8

Manmohan Sharma, Lovely Professional University              Unit 1: Introduction to Java




                                       Unit 1: Introduction to Java


               CONTENTS
               Objectives
               Introduction

               1.1 Features of Java
               1.2 Programming in Java
                     1.2.1   Structure of a Java Program
                     1.2.2   Compiling, Interpreting and Running the Program
               1.3 Keywords
               1.4 Constants

               1.5 Variables
                     1.5.1   Declaring and Initializing Variables
                     1.5.2   Primitive Variables vs Reference Variables
               1.6 Data Types
                     1.6.1   Enum Types
               1.7 Operators
                     1.7.1   Arithmetic Operators
                     1.7.2   Increment and Decrement Operators

                     1.7.3   Relational Operators
                     1.7.4   Logical Operators
                     1.7.5   Conditional Operator ‘?:’
                     1.7.6   Operator Precedence
               1.8 Expressions
               1.9 Summary

               1.10 Keywords
               1.11 Self Assessment
               1.12 Review Questions
               1.13 Further Readings

               Objectives

               After studying this unit, you will be able to:
               •    Describe the features of Java
               •    Explain the Java programming techniques
               •    List the keywords used in Java
               •    Discuss constants in Java

               •    Describe variables in Java




                                        LOVELY PROFESSIONAL UNIVERSITY                           1
   3   4   5   6   7   8   9   10   11   12   13