• Embed Doc
  • Readcast
  • Collections
  • 1
    CommentGo Back
Download
 
 .
Basic Java
Basic Java
1
 
 .
Table of Contents1. Introduction to Java ……………..…………………………………………….32. The language package ……………………………………................293. The Utilities package ……………………………………….................364. The I/O Package ……………………………………………………………….485. Applet Programming …………………………………………...............686. Multithreading ………………………………………………………………….1097. Networking in Java …………………………………………………………..1208. Java Database Connectivity ……………………………………………131
Basic Java
2
 
 .
CHAPTER-1: INTRODUCTION TO JAVA
Java, a Web programming technology, had altered the course of softwaredevelopment, especially in regard to the Internet. Java sports all features necessaryfor extending the Web in ways previously impossible. Java was designed with issuessuch as portability and reliability in mind. Because of Java, the entire concept of theWeb and what it can do is being redefined.Java is a simple, distributed, interpreted, secure, architecturally neutral, portable,high-performance, multithreaded and dynamic language. But what exactly makesJava unique is that it is the first programming language that can be used for writinggeneral-purpose applications, as well as programs designed for the Internet.
Java Buzzwords:
SIMPLICITY
Java was designed to be a powerful language but simple. To support thedevelopment of large software, the concept of package is used. The major differencewas the
removal of the direct use of pointers
. Java automatically handlesreferencing and dereferencing of language objects. Other difference includes the
removal of support for data structures like struct, union
. Its in-built classesprovide this. Also, the concepts of
operator overloading and multiple-inheritancein the form of classes have been removed.
OBJECT-ORIENTED NATURE
The notion of object in Java is implemented by its class construct. In fact, it is notpossible to write a Java program that does something meaningful without using theclass construct. Java language comes with very powerful set of pre-defined classeswith a hierarchy level.
DISTRIBUTED NATURE
Java provides the network capabilities by a pre-defined package java.net. Thispackage has many classes that simplify the network communication. Accessing toany remote object is also possible in Java via the java.rmi package.
ARCHITECTURALLY NEUTRAL
The Java Compiler does not produce the machine language instructions that makeup the executable Java Program. The Java Compiler DOES NOT generate a .exefile. Instead the compiler produces an intermediate code called as
'byte code'
. Javabyte code is an architecturally neutral representation of the program, that is, it isindependent of any processor type or machine architecture. These byte codes areread by the Java interpreter and the same is executed using an internal model of anabstract machine. The Java Interpreter and the implementation of this abstractmachine are called the
JAVA VIRTUAL MACHINE.
 
SECURE LANGUAGE
Before any Java program is interpreted, the Java runtime system performs a byte-code verification to ensure that the program is not violating the system integrity. Also,
Basic Java
3
of 00

Leave a Comment

You must be to leave a comment.
Submit
Characters: ...
08 / 24 / 2010<span class="translation_missing">en_US, this_document_made_it_onto_the</span>Rising List!
You must be to leave a comment.
Submit
Characters: ...