Page 68 - TP_iPlus_V2.1_Class8
P. 68

After  entering the value of the arguments,  click on
                                                              the OK button. The output will appear in the terminal
                                                              window as shown:








                                   Output



                     To Sum Up

                           A computer program can be defined as a collection of instructions to perform a specific
                         task.

                          The process of writing a program is called program coding or programming.
                          There are mainly two types of programming languages: procedural and object-oriented.

                          Java is an object-oriented and high-level programming language.
                          Java follows the Write Once Run Anywhere (WORA) principle.

                          A class can be defined as a user-defined blueprint or prototype that is used to create
                         objects.
                          BlueJ is an IDE designed for beginners.

                          An identifier is the name given to an object in a Java program.
                          Keywords are the reserved words that cannot be used as identifier names as they carry
                         a special meaning for the Java compiler.
                          A data type is used to define the size and type of value that a variable can store.

                          A literal denotes a constant value.
                          Variables are the memory locations used to store values.

                          A comment is a statement in a Java program that is not executed by the Java compiler.
                          An operator is a symbol that tells the compiler to perform specific mathematical or
                         logical calculations.




                                                            Exercise

                                                         Section A (Objective)
                  A.  Tick (✓) the correct option.
                      1.  Which of the following symbols are used to write comments in Java?

                        a. //                                            b. /** and */

                        c. /* and */                                     d. All of these



                    66
                         iPlus (Ver. 2.1)-VIII
   63   64   65   66   67   68   69   70   71   72   73