In the software industry across the globe, there is a need to develop large and complex software. This software should be platform independent, internet enabled, easy to modify, secure, and robust. To meet these requirements object-oriented paradigm has been advocated. Based on this paradigm, Java programming language emerges as the best programming environment. Java is used for mobile programming, internet programming, and many other applications compatible with distributed systems. This book aims to cover the essential components of Java programming so that the readers can improve their skills, cope with the demands of the IT industry and solve the problems in their own field of study.
Introduction
Necessity IT industry operates in such a diverse environment that software programs should not be confined to a single PC. Rather, they should move from a single user environment to mainframes, to networks, to network of networks, and so on. A giant program can be developed which integrates numerous mini programs which were developed by geographically distributed programmers, and all of them can be connected online. Such a distributed programming techniques and environments are no longer a dream but a reality, and it is Java, the Internet programming language, which makes it possible.
Scope Java was developed by Sun Microsystems Inc. with the intent to create a dynamic, object-oriented programming (OOP) language, suitable for using the same types of development tasks as C and C++, but without the difficulties and bugs common to those languages. This is why Java has been touted as “a better C++”; it contains all the essential OOP features, but with lower complexities than C++. Sun describes Java as a “simple, object-oriented, distributed, interpreted, robust, secure, architecture neutral, portable, high-performance, multithreaded, and dynamic language.”
Your learning In this chapter we shall briefly highlight the various features of Java programming, its superiority over other programming languages, and the tools available for its programming. At the end, you will be able to run your first program in Java.
Concept of Programming
Application systems Computer programming is used to build a software system (e.g., Microsoft Word, Library Information System, Internet Explorer browser, mobile app, printer’s driver software, to name a few). These software systems take an input and then produce an output (Figure 1.1).