BCSE-551 (Advanced Java Programming)
Course Objectives:
To learn about JDBC concepts and Collection Framework in Java.
To understand the use of Java Servlets.
To understand how Java Server Pages are designed.
To acquire knowledge about Java Networking & Remote Method Invocation.
Unit: 1
Java Database Connectivity: Definition, purpose and architecture of JDBC, JDBC drivers, Steps to connect to a database, DriverManager, Connection, Statement, PreparedStatement, ResultSet, CRUD operations using JDBC.
Collection Framework: Hierarchy of collection framework, ArrayList, LinkList, Stack, Queue (PriorityQueue), Map (HashMaps), Sets (HashSets).
Unit: 2
Java Servlets: Life cycle of a Servlet, ServletConfig, SevletContext, Reading Servlet parameters, HttpServlet, HttpServletRequest, HttpServletResponse, HttpSession, Handling HTTP request and response, Cookies, Session Tracking, Servlet Listener, Servlet Filters.
Unit: 3
Java Server Pages: Implicit Objects, JSP Directives, scripting elements, Extracting fields and values, attributes, Sessions in JSP, Cookies, JSP UseBean, Java Standard Tag Library, Expression Language, Custom Tag, Introduction to MVC Pattern.
Unit: 4
Networking in Java: Networking fundamentals, Client/Server model, Internet addresses, Sockets, networking classes and interfaces using java.net package, TCP/IP and datagram programming, HTTP protocol and URLs.
Remote Method Invocation (RMI): What is RMI, Object Serialization, RMI layer model, Skelton, Stub, java.rmi packages (Remote interface, Naming, RMISecurityManager, RemoteException), java.rmi.registry package (Registry interface, LocateRegistry), java.rmi.server package (RemoteObject, RemoteServer), Parameter passing of non-remote and remote objects, cloning remote objects.
Course Outcomes:
After completion of this course, student is able to:
i) Write java applications using JDBC and collections.
ii) Learn and use the concept of java servlets, jsp and beans. iii) Create java networking applications using java.net and RMI.
iv) Use advance Java programming related concepts in development of various projects/fields.
Text Books:
1. H.M. Deitel, P.J. Deitel, “Java How to Program”, 6th edition Pearson Education, New Delhi
2. Bryan Basham, Kathy Sierra, Bert Bates, “Head First Servlets and JSP”.
Reference Books:
1. Cay S. Horstmann, Gray Cornell, “Core Java 2 Volume II-Advanced Features”, Sun Microsystems Press, Pearson Education, New Delhi.
2. Herbert Schildt, “Java: The Complete Reference”, 7th Edition, Tata McGraw Hill Publication, Delhi.
Advanced Java Programming Lab
Course Objectives:
i) Learn to create java applications using JDBC and collections framework.
ii) Learn to create enterprise applications using java servlets.
iii) Learn and use the java server pages in java enterprise applications.
iv) Learn to create projects based on java networking and RMI.
List of Practical
1. Installation of Eclipse IDE for Enterprise Java and Web Developers.
2. Write a java program to enter employee details in an Employee table with attributes- ID, name and salary using JDBC.
3. Write a java program to search, update and delete an Employee by ID.
4. Create an ArrayList of Employee details- ID, name, and salary and display all employee details from the Employee table using the ArrayList..
5. Create and deploy a java servlet to print welcome on the browser and run it using the apache tomcat server in eclipse.
6. Create and deploy a java servlet to print all the Employee details in the Employee table.
7. Create a java jsp program to enter the new employee details from an HTML form into the Employee table.
8. Create a java jsp program to delete an employee from the employee table.
9. Implement java client-server communication using java networking concepts.
10. Call a remote method to display Employee details from the server using RMI concepts.
Course Project Description:
Create an Event Management enterprise application for MM Engineering College where students can register themselves for an upcoming event and results can be published after the event.
New events can be created and published by coordinators. Use all the concepts learned in the above practicals.
Course Outcome:
After completion of this course, student is able to:
i) Setup client server communication.
ii) Develop enterprise application with collection framework.
iii) Learn to develop JSP based application.
iv) Use the concept of java servlets to develop applications.