Java Programming – PG-WiMC - C-DAC Mumbai

mobdescriptiveΛογισμικό & κατασκευή λογ/κού

28 Οκτ 2013 (πριν από 3 χρόνια και 9 μήνες)

110 εμφανίσεις

Java Programming


PG
-
WiMC


Duration:
60 class room hrs. + 50 lab hrs

Objective:
To introduce the student to Core Java & Advanced Java

Prerequisites:
Knowledge of object
-
oriented programming

Evaluation method:
Theory exam


40% weightage

Lab exam


40% wei
ghtage

Assignments


20% weightage


Java 6 and J2EE 1.5 / Kogent/ Dreamtech

Reference:
Beginning Java 2 by Ivor Horton; Wrox Publication



Java Language and its features


How Java is different from C++?


The Java Language



Data types, Variables, Constants, operators, Control Statements (if, for, while,
switch etc.)


Classes in java


Constructors, finalize, instance data and methods,
the new operator


Methods, overloading, parameter passing, objects as parameters


Memory management, garbage collection


The this facility, static data and methods, block, scope, lifetime


JDK and its usage (Java Compiler, Java Runtime, Java Debugger,
Java doc)


Difference between applications and applets


The first Java Program


Get yourself acquainted with java environment. Build a class Emp, which
contains details

about the employee and compile and run its instance.


Compare syntactical similarit
ies and dissimilarities between Java and C++



Inner classes, Abstract Classes & wrapper classes.


Interfaces


Packages


Access Control Rules


Create an inner class for a manager, which contains information about the
manager. Use

the appropriate inter
faces. Create an anonymous inner class for
Tech. Members using the

Session one assignment



Exception Handling


Exceptions as objects,


Exception hierarchy


Try, catch and finally


Different exception classes


Create an appropriate data structures to

store your employee object and use
the

java.util.package properties.



The java. Lang package, Object, Number, Math, System


The String class


The java.util Package


Arrays, Vectors, Stack, Hash table, Dictionary, Property


Create a user defined exce
ption to check whether your employee exist in your
data

structure and using the catch and finally block. Redeem an appropriate
solution.



The Java2 Collection Framework


Multithreaded programming in Java


Multithreading: advantages and issues


The Thr
ead class, thread groups


The Run able interface


Thread synchronization


Inter
-
Thread communication


Using the collection framework define an appropriate interface to your above
application


Using Multi
-
Threading create objects in java E.g. Create a
clock & synchronize
your

application.



The java.io Package


Files


Byte Streams and Unicode Character Streams


Persistence of objects


Object Serialization Methods


Make your above Employee, manger classes objects persistent.



Introduction to AWT


Delegation Event Model



Components and Layout managers


Handling images, animation.


Design a suitable interface using the different layout managers to insert,
update, modify &

delete data in your Employee, manger classes.



Swing


Using Basic Swin
g Components


JFrame, JPanel, JOptionPane, JLabel, JButton, JList, JCheckBox,
JRadioButton,

JScrollBar, JMenuItem, JMenu, JmenuBar.


Advanced swing components


The Model
-
View
-
Controller Architecture


JScrollPane, JTable, JTree, JDesktopPane, JInternalF
rame, JSplitPane


Design the Session 8 assignment using swing components.



The Applet class


Applet context, paint (), repaint (), update (), get Graphics ()


Passing parameters, embedding in HTML


Integrating into distributed application


Inter app
let communication


Communication with JavaScript


Security Issues while running in clients desktop


Design the interface of the Employee, manger classes using applets.



Reflection in Java


Determine the class of an object.


Get information about a c
lass's modifiers, fields, methods, constructors, and
super classes.


Find out what constants and method declarations belong to an interface.


Create an instance of a class whose name is not known until runtime.


Get and set the value of an object's fiel
d, even if the field name is unknown to
your

program until runtime.


Invoke a method on an object, even if the method is not known until runtime.


Create a new array, whose size and component type are not known until
runtime, and then

modify the array's
components



Introduction to Java Network Programming


URL


Inet Address


Socket, and ServerSocket


DatagramPocket


DatagramSocket


Write a multithreaded chat server and a GUI client


Compare network programming in Java with that in other languages
.


Provide chat
-
rooms and private messaging facilities to your chat
Application.Convert the

client application to an applet



Remote Method Invocation


The java.rmi package


The Remote interface


The UnicastRemoteObject and Naming classes


Stub, rmic
, rmiregistry


Write an RMI server that returns a Result object to your RMI client application.
He GUI

client sends a roll number to the server and the server looks up a
database table for the

students’ details (name, marks, rank etc) and passes a
Result
object to the client

encompassing all these info.



Database Access Methods, ODBC, JDBC, JDBC architecture


The java.sql package


Driver Manager, Driver, Connection, Statement, Result Set


Writing database applications

Build an application to get stude
nt’s details using database.


XML


Introduction to XML.


XML and the browser.


Revision of HTML and Client
-
Server Architecture.

Page 5 of 7


XML as the mode of data transfer.


XML Parsers.


A basic XML Document.


Write different XML Parsers and thei
r features


Building Blocks


Parts of the XML Document.


Namespaces.


The Root Element.


Tags and Elements


Attributes and Values.


CDATA and PCDATA


Create some basic XML documents and check them out in the IE browser for
validity.


DTD


Creating
Document Type Declarations.


Creating Document Type Definition.


Internal and External DTD’s


Associating DTD’s with XML documents. (The XML Declaration and DOCTYPE

declaration.)


Validating documents against a DTD


Internal and External General Entit
ies.


Element Type (ELEMENT) Declarations.


Attribute (ATTLIST) Declarations.


Using INCLUDE and IGNORE.


Create a XML document and write DTD for it


Create a XML document and validate it


XML Schemas


Types and Elements


Defaults and Attribute Cons
traints.


Simple types and elements.


Creating choices and groups.


Schemas and Namespaces.


Create a DTD and an XSD Schema for a markup language of your own.


XSL StyleSheets


Introduction to XSLT Style Sheets.


Creating XSLT sheets.


<xsl:apply
-
te
mplate> tag.


Copying nodes


Sorting Elements


Select Attribute


Using xsl:if and xsl:choose


XSL StyleSheets and Transformations (Cont’d)


xsl:value
-
of and xsl:for
-
each tags


Pattern Matching (@, /, //, .. ,etc)


Operators ( [ ], | )


Nodes.


Com
ment() node to match comments.


XLinks


Xpointers

<order>

<customer>

<name>Fidelma McGinn</name>

<phone_number>425
-
655
-
3393</phone_number>

</customer>

<item>

<number>5523918</number>

<description>shovel</description>

<price>39.99</price>

</item>

<date_of
_purchase>1998
-
10
-
23</date_of_purchase>

<date_of_delivery>1998
-
11
-
03</date_of_delivery>

</order>

Create a XSL sheet for the billing XML.



Servlets : Dynamic Content Generation


Advantages of Servlets over CGI


The Servlet interface


The HttpServlet, H
ttpServletRequest, HttpServletResponse classes


Exception Handling



Session


Session Management


Session Tracking with

º
Cookies

º
HttpSession


Use Java Servlets technology in designing and implementing an Air Ticket
reservation

system. Incorporate S
essions in the Air Ticket reservation system.


Know more about the HTTP protocol at
www.w3c.org


Compare which way of session tracking is better Cookies or HttpSession



JSP: Separating UI from Content generation code


MVC architecture


Life cycle of
a JSP page


Directives, Implicit and Explicit Objects, Scriptlets, Expressions


Separate UI code from the controller code in your Air Ticket reservation system
by

incorporating JSP and Servlets



Scope


Session Tracking


Custom Actions and Tag Librari
es in JSP


Java Server Pages Standard Tag Library


Complete the implementation of Air
-
ticket reservation system.



Struts architecture


Building Your Pages With Struts


Make a Hello World Application using Struts



Web services (soap and http)


Depl
oyment of Web Server (Jakarta Jboss or BEA Web logic)


Configure and test web services in lab.