Java for Engineers and Scientists

  • Authors:
  • Stephen J. Chapman

  • Affiliations:
  • -

  • Venue:
  • Java for Engineers and Scientists
  • Year:
  • 2003

Quantified Score

Hi-index 0.00

Visualization

Abstract

From the Book:PREFACE: Preface The basic purpose of this book is to simultaneously teach the Java programming language, structured programming techniques, and good programming practice to an audience of science and engineering students. Java is a relatively new programming language, but it is taking the world by storm. The language has enormous appeal for many reasons. One major reason is that it is largely platform independent, meaning that an application written for one computer is very likely to run unchanged on another computer. Thus, a single application can be written to execute across all of a company's computers, whether they are PC's, Macs, or Unix workstations. A second major advantage is that Java has a C-like syntax, but drops many of the more obscure and messier features of C. Having a C-like syntax means that it is already partially familiar to millions of people. This fact aids its acceptance. An example of Java's improvement over C is its treatment of character strings. In Java, strings are treated as objects and are manipulated by a set of standard methods. In C, strings are manipulated with pointers, which is a much more error-prone process. A third major advantage of Java is that it is object oriented, which should make code written in Java more re-usable between applications. With a little forethought, classes and methods written for one application are usable in another application without change, because the way that the data and methods are encapsulated in the objects prevents undesirable interactions among them. A fourth major advantage of Java is that it is possible to write device-independentgraphicsapplications. Languages such as C and Fortran do not provide device-independent graphics, because the programmer must concern himself / herself with the specific details of the hardware being used to display the graphics. The language definitions do mot include standard APIs for working with graphics at a higher level. By contrast, Java's AWT and Swing Graphics classes provide a higher-level abstraction that is the same across any Java implementation, making device-independent graphics practical. A final advantage of Java is that it is free. Sun provides a free Java Development Kit for download from its World Wide Web site (...