Written by : JAVA Programming for Engineers
Title : Java Programming
Java Programming
Introducing Java
Java is a programming language similar to C and C++. Its most characteris-
tic feature is that Java is a platform-independent language. This means that
Java programs will run on any machine that supports the language. The slo-
gan “write once, run anywhere” has often been used to describe and pro-
mote the Java language.
Incidentally...
Java is not without drawbacks, and platform-independency is more a
goal than a reality. Often Java programs must be modified before they
operate correctly in another system. This has led some critics to re-
write the Java slogan to say “write once, debug everywhere.”
Java was conceived by James Gosling, in the early 1990s, as a simple
and small language to be used in programming consumer electronic de-
vices, such as cellular phones and TV controllers. It was originally named
Oak. After a few years of vainly attempting to find a costumer for Oak
(also called Green), the design team renamed the language Java and in-
corporated it into the HotJava browser. HotJava could be used to down-
load and run small programs, called applets, from the web. Applets,
written in Java, provided a variety of animation and user-interaction fea-
tures that were not available in a conventional browser. In the summer of
1995, Sun Microsystems released Java as a programming language. It was
an instant success. In a few months Java became the preferred program-
ming language of the World Wide Web, and it still is. It also evolved into a
popular, general-purpose programming language.
Perhaps the most important element in Java’s success was its timeli-
ness. The language was introduced at the same time that the World Wide
Web was rapidly gaining popularity. The Web is an international network
of incompatible computers, made by dozens of manufacturers and having
unique hardware characteristics. There is no standard operating system
or software environment on the Web.
ness. The language was introduced at the same time that the World Wide
Web was rapidly gaining popularity. The Web is an international network
of incompatible computers, made by dozens of manufacturers and having
unique hardware characteristics. There is no standard operating system
or software environment on the Web.
Java brought a promise of uniformity and compatibility to this diverse
hardware and software environment of often irreconcilable differences.
Its promise was that a program written in the Java language would exe-
cute correctly on any Java-enabled machine. A Java programmer could
code a small application, embed it in a Web page, and the program would
run on any browser that supported Java.
Programmers note:
The language used to create Web pages and other Internet documents
is called Hypertext Markup Language (HTML). Java code can be em-
bedded in HTML documents in a capsule called a Java applet.
Java also provides a way of extending the functionality of a Web
browser. Using Java, you can create a Web page that does more than is
possible with straight HTML. The processing is contained in a Java applet
that runs on any Java-enabled browser, including Mosaic, Netscape Navi-
gator, or Internet Explorer. The applet executes correctly on a PC run-
ning Windows, on a Macintosh, on a UNIX machine, or on an IBM
mainframe. The result is the same if you are connected to the Internet
through a high-speed network or a slow-speed modem. This is what
makes Java powerful and unique.
In computer talk, the word “portable” describes code that can be moved to
varioussystemswithlittleornoeffort.Theexpressionprobablyrelatestoa
computer connection, called a port, that is used for passing data in and out
of a machine. Code that can be made to work in another machine simply by
sending it through ports, is said to be portable. A programming language,
suchasJava,thatcanbeeasilymadetorunonvarioussystemsisdescribed
as highly portable.
Originally, Java’s portability was limited to applets intended for the
Web. It was soon noticed that Java could be used as a full-featured pro-
gramming language to develop complete applications. The resulting pro-
grams would be portable to any Java-supporting platform. The benefits of
machine-independent programming went beyond the obvious problems
of hardware incompatibility. In the rapidly-evolving world of personal
computers, operating systems were also changing at a fast rate. In the
1990’s the same machine could run a half dozen versions of MS DOS, Win-
dows 3.0/3.1, Windows 95, Windows 98, Windows 2000, NT 3.1, 3.5, 4.0, or
Windows CE, and Linux. Applications had to be constructed taking into
account many variations in the system software. At the same time, many
potential customers were lost when an application was limited to a single
machine or operating system environment.
of hardware incompatibility. In the rapidly-evolving world of personal
computers, operating systems were also changing at a fast rate. In the
1990’s the same machine could run a half dozen versions of MS DOS, Win-
dows 3.0/3.1, Windows 95, Windows 98, Windows 2000, NT 3.1, 3.5, 4.0, or
Windows CE, and Linux. Applications had to be constructed taking into
account many variations in the system software. At the same time, many
potential customers were lost when an application was limited to a single
machine or operating system environment.
Making an application compatible with several machine and software
configurations often ends in a programming nightmare. Java promises a
simplification of the programming task and a solution to incompatibility
problems. No longer does the programmer have to deal with a “moving
target” of hardware and operating system software. Instead, Java’s “Code
once, run anywhere” motto promises that the code can be “future proof”
by making it compatible with future machines and operating systems.
Thus our article entitled Java Programming,do you like the article hopefully this article can benefit you all.
You are reading the article Java Programming and this article the permalink url is https://javaprogrammingengineers.blogspot.com/2014/06/java-programming.html Other articles you are looking for xxxxx

0 Response to "Java Programming"
Posting Komentar