Java Learning Made Easy by Dheeraj Mehrotra - HTML preview

PLEASE NOTE: This is an HTML preview only and some elements such as links or page numbers may be incorrect.
Download the book in PDF, ePub, Kindle for a complete version.

and simple design, however, Java still has a great deal of power and flexibility.

00704.jpg00705.jpg00706.jpg00707.jpg00708.jpg00709.jpgattention@computerscienceexpertise.com

 

00710.jpg00711.jpg00712.jpg00713.jpg00714.jpg00715.jpg00716.jpg00717.jpg00718.jpg00719.jpg00720.jpg00721.jpg00722.jpg00723.jpg00724.jpg00725.jpg00726.jpg00727.jpg00728.jpg00729.jpg00730.jpg00731.jpg00732.jpg00733.jpg00734.jpg00735.jpg00736.jpg00737.jpg00738.jpg00739.jpg00740.jpg00741.jpg00742.jpg00743.jpg00744.jpg00745.jpg00746.jpg

o Better Cousin of C, C++

00747.jpg00748.jpg

Java is modeled after C and C++, and much of the syntax and object-oriented structure is borrowed from the latter. If

00749.jpg

you are familiar with C++, learning Java will be particularly easy for you, because you have most of the foundation already. Although Java looks similar to C and C++, most of the more complex parts of those languages have been

00750.jpg

excluded from Java, making the language simpler without sacrificing much of its power. There are no pointers in Java, nor is there pointer arithmetic. Strings and arrays are real objects in Java. Memory management is automatic. To an

00751.jpg

experienced programmer, these omissions may be difficult to get used to, but to beginners or programmers who have worked in other languages; they make the Java language far easier to learn.

00752.jpg00753.jpg00754.jpg00755.jpg00756.jpg00757.jpg00758.jpg00759.jpg00760.jpg00761.jpgattention@computerscienceexpertise.com
00762.jpg00763.jpg00764.jpg00765.jpg
00766.jpg00767.jpg00768.jpg00769.jpg00770.jpg00771.jpg00772.jpg00773.jpg00774.jpg00775.jpg00776.jpg00777.jpg00778.jpg00779.jpg00780.jpg00781.jpg00782.jpg00783.jpg00784.jpg00785.jpg00786.jpg00787.jpg00788.jpg00789.jpg00790.jpg00791.jpg00792.jpg00793.jpg00794.jpg00795.jpg00796.jpg

o Applets and Applications

00797.jpg

The most common types of programs written in the Java programming language are applets and applications. If you've surfed the Web, you're probably already familiar with applets. An

00798.jpg

applet is a program that adheres to certain conventions that allow it to run within a Java-enabled browser.

00799.jpg

o An application is a standalone program that runs directly on the Java platform. A special kind of application known as a server

00800.jpg

serves and supports clients on a network. Examples of servers are Web servers, proxy servers, mail servers, and print servers.

00801.jpg

Another specialized program is a servlet. A servlet can almost be

00802.jpg

thought of as an applet that runs on the server side. Java Servlets are a popular choice for building interactive web applications,

00803.jpg

replacing the use of CGI scripts. Servlets are similar to applets in that they are runtime extensions of applications. Instead of

00804.jpg

working in browsers, though, servlets run within Java Web servers, configuring or tailoring the server.

00805.jpg00806.jpg00807.jpg00808.jpg00809.jpg00810.jpg00811.jpg00812.jpg00813.jpgattention@computerscienceexpertise.com

 

00814.jpg00815.jpg00816.jpg00817.jpg00818.jpg00819.jpg00820.jpg00821.jpg00822.jpg00823.jpg00824.jpg00825.jpg00826.jpg00827.jpg00828.jpg00829.jpg00830.jpg00831.jpg00832.jpg00833.jpg00834.jpg00835.jpg00836.jpg00837.jpg00838.jpg00839.jpg00840.jpg00841.jpg00842.jpg