Java Programming Language (Short Term)

Continue...... Java Programming Language

The major characteristics of Java are:
The programs you create are portable in a network. (See portability.) Your source program is compiled into what Java calls bytecode, which can be run anywhere in a network on a server or client that has a Java virtual machine. The Java virtual machine interprets the bytecode into code that will run on the real computer hardware. This means that individual computer platform differences such as instruction lengths can be recognized and accommodated locally just as the program is being executed. Platform-specific versions of your program are no longer needed.
The code is robust, here meaning that, unlike programs written in C++ and perhaps some other languages, the Java objects can contain no references to data external to themselves or other known objects. This ensures that an instruction can not contain the address of data storage in another application or in the operating system itself, either of which would cause the program and perhaps the operating system itself to terminate or "crash." The Java virtual machine makes a number of checks on each object to ensure integrity.
Java is object-oriented, which means that, among other characteristics, an object can take advantage of being part of a class of objects and inherit code that is common to the class. Objects are thought of as "nouns" that a user might relate to rather than the traditional procedural "verbs." A method can be thought of as one of the object's capabilities or behaviors.
In addition to being executed at the client rather than the server, a Java applet has other characteristics designed to make it run fast. Relative to C++, Java is easier to learn. (However, it is not a language you'll pick up in an evening!) Java was introduced by Sun Microsystems in 1995 and instantly created a new sense of the interactive possibilities of the Web. Both of the major Web browsers include a Java virtual machine. Almost all major operating system developers (IBM, Microsoft, and others) have added Java compilers as part of their product offerings.

  Core Java Course Outline Introduction to Java

• The Genesis of Java

• Java’s Lineage

• What is Internet?

• Services Provided by the Internet

• WWW and Hypertext

• Client Server Interaction

• Limitations of the WEB

• The Java Edge, Java Buzzwords

• Java API and JVM, Applet versus Applications

  Basics of Java

• Data Types, Variables, Literals

• Simple Data Types

• Type Conversion and Casting

• Automatic Type Promotion

• Arrays

• Operators

• Arithmetic, Bitwise, Relational, Boolean, Assignment, ?

• Operator Precedence and Associativity

• Control Statements

• Selection and Iteration

  Object-Oriented Programming in Java

• The Three OOP Principles: Abstraction, Classes, Objects

• Accessing the Class Members, Methods Returning Values and Methods with

• Parameters, Constructors, the Keywords: this, static, final, finalize ( ) Method,

• Overloading Methods and Constructors, Recursion, Nested and Inner Classes,

• Access Control, Inheritance, the Keyword super, Method Overriding & Dynamic

• Method Dispatch, Multilevel Hierarchy, Abstract Methods and Classes, Packages,

• Access Protection Matrix, Interfaces, the CLASSPATH

  Exception Handling & the Input/Output System Exception-handling

• Exception Types, Uncaught Exceptions

• Exception Clauses: try, catch, throw, throws, finally

• Java’s Built-in Exceptions

• Creating Your Own Exception Classes

• When to Use / Not to Use Exceptions

  The Java I/O System

• Java I/O Methods

• Predefined Streams in Java: System.in, System.out, System.err

• The File Class, Byte and Character Streams Hierarchy

• Data Streams: DataInputStream and DataOutputStream Classes

• The RandomAccessFile Class

• The Scanner Classes: StreamTokenizer, StringTokenizer

  Threads, Applets and Event Handling Threads

• The Java thread model, States of Threads, Thread Class & Runnable Interface

• Methods

• Creating a Thread, Thread Priorities, Synchronization

  Applets

• Applet Basics and Architecture, Applet Initialization & Termination, Applet

• Restrictions

• Writing a Simple Applet, Visualizing How an Applet Works, Simple Applet Display

• Methods, Overriding update(), Requesting Repainting - Threads in Applets,

• Using the Status Window, the HTML APPLET Tag, and Passing Parameters to

• Applets.

  Event Handling

• Event Classes, Sources of Events, Event Listeners and Interfaces, Handling

• Mouse Events, Handling Keyboard events

  The Swing

• Designing a GUI with Swing using:

• Swing Applets (class JApplet), Icons (class ImageIcon & Icon Interface), Labels

• (class JLabel), Text Fields (class JTextField), Buttons (class JButton), Check

• Boxes (class JCheckBox), Radio Buttons (class JRadioButton), Choice Lists

• (class JComboBox)

  Event Handling

• Event Classes, Sources of Events, Event Listeners and Interfaces, Handling

• Mouse Events, Handling Keyboard events

  The util Package

• Contains collections, the most exciting enhancement added by Java 2. A

• collection is a group of objects. Its addition caused fundamental alteration in the

• structure and architecture of many elements in java.util that contains a wide

• assortment of classes and interfaces:

• Date Related Classes: Date, Calendar, TimeZone

• The Random, BitSet and StringTokenizer Classes

• The Enumeration Interface & Legacy Classes: Vector, Stack, Dictionary,

• HashTable, Properties

  Event Handling

• Event Classes, Sources of Events, Event Listeners and Interfaces, Handling

• Mouse Events, Handling Keyboard events

  Eligibility:

No pre-requisite qualifications are required by candidates to undergo this course. An elementary knowledge of English is, however, expected of the candidates (Minimun 8th Pass).

  Duration:

• The total duration of the course is 90 hours, consisting of:

• Theory 30 hours

• Tutorials 5 hours

• Practicals 55 hours

Previous Page<<