Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 88 - 2617_JSSPS_C-6
P. 88

    These applications are embedded into a web page and run with the help of a web browser. Now, we
                  can develop different types of applications in Java.

                  Java follows the Write Once Run Anywhere (WORA) principle. This means that a program once written
                  in Java can run on any Java-enabled machine without making any changes. Java programs do not depend
                  on the hardware of the computer. Hence, Java is a platform-independent language.
                  Java is simpler and easier to use than the other object-oriented  programming languages. When
                  developing Java, its creators took all of the good features of the existing object-oriented programming
                  languages, such as C++, Ada, and Smalltalk.

                  FEATURES OF JAVA

                  Java has various advanced features, which are as follows:

                       Simple: Java has a relatively simple structure and clearly defined syntax.

                       Case-sensitive: Java is a case-sensitive language. In Java, ‘pay’ and ‘PAY’ are not the same. They are
                     interpreted differently.

                       Object-oriented: Java supports object-oriented programming concepts of classes and objects. The
                     programs are built around objects that combine both data and functionality.
                       Platform independent: A Java program can run on any platform without making changes to it,
                     which means that the same program will run on Windows, Linux, Macintosh, etc.

                       Secure: Java is a secure programming language. It enables us to develop virus-free programs. It also
                     provides different types of authentication techniques that are based on public-key encryption.

                       Robust: Java makes an effort to eliminate error-prone situations by emphasising mainly on compile
                     time error checking and runtime checking.

                  INTRODUCING BLUEJ

                  Previously, we used simple text editors such as Notepad to develop Java programs. With the advancement
                  in technology, there are different types of Integrated Development Environment (IDE) available free of
                  cost. Some of the IDEs are Netbeans, Eclipse, and BlueJ. In this chapter, we are using BlueJ.
                  BlueJ is an IDE designed for beginners.  It has a built-in  editor, debugger,
                  and viewer. An editor gives us an area where we can write programs, and
                  a  debugger  allows  us  to  find  errors in  the  programs. On  the  other  hand,
                  the viewer shows the output of the program.

                  BlueJ is a freely downloadable  application. We can download  it from
                  https://www.bluej.org/. After downloading the application, we need to install
                  it on our computer.

                  Installing BlueJ

                  After downloading BlueJ, we can install it in our device. To install BlueJ, follow the given steps:

                     86     Premium Edition-VI

| 83 84 85 86 87 88 89 90 91 92 93 |