Core Java® Volume I–Fundamentals



Download 37,53 Mb.
Pdf ko'rish
bet28/34
Sana06.01.2022
Hajmi37,53 Mb.
#325163
1   ...   24   25   26   27   28   29   30   31   ...   34
Bog'liq
9780134177373-Vol-1

Java is an extension of HTML.

Java is a programming language; HTML is a way to describe the structure of a

web page. They have nothing in common except that there are HTML extensions

for placing Java applets on a web page.



I use XML, so I don’t need Java.

Java is a programming language; XML is a way to describe data. You can process

XML data with any programming language, but the Java API contains excellent

support for XML processing. In addition, many important XML tools are

implemented in Java. See Volume II for more information.

Java is an easy programming language to learn.

No programming language as powerful as Java is easy. You always have to dis-

tinguish between how easy it is to write toy programs and how hard it is to do

serious work. Also, consider that only seven chapters in this book discuss the Java

language. The remaining chapters of both volumes show how to put the language

to work, using the Java libraries. The Java libraries contain thousands of classes

and interfaces and tens of thousands of functions. Luckily, you do not need to

know every one of them, but you do need to know surprisingly many to use Java

for anything realistic.

Java will become a universal programming language for all platforms.

This is possible in theory. But in practice, there are domains where other languages

are entrenched. Objective C and its successor, Swift, are not going to be replaced

on iOS devices. Anything that happens in a browser is controlled by JavaScript.

Windows programs are written in C++ or C#. Java has the edge in server-side

programming and in cross-platform client applications.



Java is just another programming language.

Java is a nice programming language; most programmers prefer it to C, C++, or

C#. But there have been hundreds of nice programming languages that never

gained widespread popularity, whereas languages with obvious flaws, such as

C++ and Visual Basic, have been wildly successful.

Why? The success of a programming language is determined far more by the

utility of the support system surrounding it than by the elegance of its syntax. Are

there useful, convenient, and standard libraries for the features that you need to

implement? Are there tool vendors that build great programming and debugging

13

1.5 Common Misconceptions about Java

From the Library of Hristo Dimov Hristov



ptg18360597

environments? Do the language and the toolset integrate with the rest of the

computing infrastructure? Java is successful because its libraries let you easily

do things such as networking, web applications, and concurrency. The fact that

Java reduces pointer errors is a bonus, so programmers seem to be more

productive with Java—but these factors are not the source of its success.



Java is proprietary, and it should therefore be avoided.

When Java was first created, Sun gave free licenses to distributors and end users.

Although Sun had ultimate control over Java, they involved many other companies

in the development of language revisions and the design of new libraries. Source

code for the virtual machine and the libraries has always been freely available,

but only for inspection, not for modification and redistribution. Java was “closed

source, but playing nice.”

This situation changed dramatically in 2007, when Sun announced that future

versions of Java would be available under the General Public License (GPL), the

same open source license that is used by Linux. Oracle has committed to keeping

Java open source. There is only one fly in the ointment—patents. Everyone is

given a patent grant to use and modify Java, subject to the GPL, but only on

desktop and server platforms. If you want to use Java in embedded systems, you

need a different license and will likely need to pay royalties. However,

these patents will expire within the next decade, and at that point Java will be

entirely free.




Download 37,53 Mb.

Do'stlaringiz bilan baham:
1   ...   24   25   26   27   28   29   30   31   ...   34




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish