Anna University Questions Department of CSE III Year CS1005 – Advanced Java Programming (Elective) Unit I 2 Marks
MAY/JUNE 2007 1. When to use pipe stream for performing I/O operation? 2. What are the storage structures used to represent byte code? NOV/DEC 2007 1. What is the use of thread? 2. Give the syntax and use of any four classes in swing? APRIL/MAY 2008 1. Write a java program to read an integer and to display the same. 2. What are the benefits in using swings compared to awt? May/June 2009 1. How are the strings transferred between native methods in Java? 2. Write a Java statement that tests if a thread is alive. NOV/DEC 2009 1. Define the term Byte code in Java. 2. Compare swing with awt?
MAY/JUNE 2007 1. Explain Byte stream and Data stream with their applicability.(8) 2. How to extract the methods and constructors defined in a class using reflection in Java. (8) 3. Explain the implementation of thread synchronization in Java.(10) 4. How to invoke legacy application in Java? (6) NOV/DEC 2007 1. Write a Java program for Reading the data from a file.(8) 2. Explain the properties and methods in FileReader, FileWriter, BufferedReader and BufferedWriter(8) 3. Write a program in Java for dynamically changing the color of Text using Multithreading.(8) 4. Develop Java swing code for creating student Bio-data form.(8) APRIL/MAY 2008 1. Write a java program to read a text file and to count the number of words and sentences. 2. What is reflection? Explain its use. 3. Explain the life cycle of thread. 4. What is JNI? With an application scenario explain its usage. May/June 2009 1. Briefly explain the Java i/o stream class hierarchy. 2. Write a Java program to illustrate the event handling registration and working in Swing 3. Illustrate the use of Pipes for communication between the threads with suitable java program. 4. Write a Java program to create and access a random access file using file streams NOV/DEC 2009 1. Explain Inter-thread communication in java with an example. 2. What is swing? Explain its features. 3. Explain Dynamic reflexive classes. 4. What is JNI? Explain its uses with an example. 5. Explain JVM in detail.
. Write syntax for creating socket for UDP May/June 2009 1. What is the Domain Naming Service (DNS)? APRIL/MAY 2008 1. 2. Compare and contrast the feature of TCP/UDP. Create Socket client and socket server for performing simple data read and write operations in Java.(6) 4. How do you read the content of header for a received IP packet? Develop a JAVA code for the same and display the header contents. 2. Write a Java code.Unit II 2 Marks
MAY/JUNE 2007 1. List the situations where the ‘Socket Exception’ be thrown. (HINT: You may use Swing GUI component JEditorPane from package javax. Write a java program to implement a chat system using TCP/IP.swing). 3. 3. 2. Explain the following: (i) Secure sockets (ii)Custom sockets (iii)Java Messaging service NOV/DEC 2007 1. Develop an EchoServer and EchoClient program that displays whatever is typed in the server on the client using sockets 2. Name the classes and methods associated with URL. 4. Write a java program to read a web page from a given web site. 3. 2. Write a client/server java program to transfer a file from the server to the client using Datagram objects. Write Java program for Net chatting. which accepts a host name and displays is IP address.(10) APRIL/MAY 2008 1. Write a client/server program for establishing connection using TCP (10) 3. What are the different communication mechanisms used by the distributed objects for their communication? 2.(6) 2. Write brief note on multicast sockets. Write a Java network program to implement a telnet server which counts the number of lines in a text file which is sent from the telnet client using connection oriented services NOV/DEC 2009 1. Explain the principles and working of Multicast Socket. Differentiate between Socket and Server Socket. 2. How does a client determine the host name? NOV/DEC 2009 1. What are the methods in the URL class used for parsing the URL? NOV/DEC 2007 1. 2. May/June 2009 1. Develop a JAVA program for reading the content of a file from web server through a URL connection. Define socket and port. What is Telnet? 2. Explain about JAVA Messaging Services. Explain the features of JMS.
MAY/JUNE 2007 1.
What are RMI custom sockets in JAVA. 2. Discuss a simple client/server application using RMI. When object serialization is to be invoked in the program? NOV/DEC 2007 1. 2.
MAY/JUNE 2007 1. Discuss the steps involved in creating an RMI server.(8) 3. Create a CORBA server for performing simple deposit and withdrawal operation in java(8) NOV/DEC 2007 1. How do you create a JAR file? Give an example. Define the terms marshalling and unmarshalling. Develop a RMI application in which a client applet invokes a method on a remote object to retrieve the bio-data of an employee from the XYZ Company along with his photograph and display them on the specified area on the applet. 3. What is object serialization? Write a java program to serialize an object. Describe the CORBA OMA architecture and how components in various layers interact with each other. 2. 2. NOV/DEC 2009 1.(10) 4. Explain the implementation of Naming service in CORBA. Compare JAVA RMI with CORBA. What is the use of remote reference layer? 2. List out the different services provided by CORBA specification And high light their features May/June 2009 1. May/June 2009 1. Write short notes on IDL technology. Compare RMI and CORBA. 3. What are the activation models? NOV/DEC 2009 1. 2.(6) APRIL/MAY 2008 1. Here the person’s bio-data is retrieved while giving the employee identification number through the keyboard. Explain the architecture of RMI(8) 2.
. Illustrate the steps involved in RMI server creation with an example. What is meant by middleware architecture? 2. 3. 4. What is POA? Explain its role. What is meant by object serialization? Explain. Explain the steps involved in JAR file creation.(8) 4. What is the use of CORBA? Draw the Programming Model of CORBA. Explain the naming services in CORBA. 2.Unit III 2 Marks
MAY/JUNE 2007 1. 3. Explain the process of mapping an IDL to java with an example. Justify the need for creating and using a JAR file. Mention the Interfaces used for creating RMI APRIL/MAY 2008 1. 2.
Write a Servlet to display a “Hello” message. Consider a database STATE_DETAILS with state name. Highlight the features of JMF. You may consider 3-D effect by increasing or decreasing the size of each ball when a ball hit the edge of the applet. Mention the various types of JDBC drivers. Consider a database table student details with Roll no. 2. Write a Java program for printing student mark sheet using JDBC. when the rollno is given as input. Discuss the steps involved in creating a customized tag with an example(10) 3. It should also allow you to add shadows. Describe the life cycle of servlet. No of males. What is Server-side programming? 2. 3. Give the life cycle of Servlets. Compare Java Server Page with servlet? 2. Explain how o pass parameters to applets in JAVA with example.(8) APRIL/MAY 2008 1. 2. What is multimedia streaming? How is it achieved in JAVA? May/June 2009 1. When the ball hits the edge of the applet.(6) 2. Randomly choose the color for each ball. What are hidden fields? Explain their use. name and result Write a servlet program to display the result of a student.(4) 3. Develop a JSP code to create a web site for ordering books. 2. As a ball moves. Provide the minimum of 20 balls. write a JSP program to retrieve the detail when state name is provided as input. Females and avg income. NOV/DEC 2009 1. APRIL/MAY 2008 1. NOV/DEC 2007 1. Develop a JAVA program that bounces a blue ball inside an applet. Bounce the balls off each other when they collide. 2. May/June 2009 1. Explain the steps involved in accessing a database using JDBC (8) NOV/DEC 2007 1. the ball should bounce off the edge and continue in the opposite direction.Unit IV 2 Marks
MAY/JUNE 2007 1. List the builts in objects of JSP and summarize their features. 2.(8) 4. Explain the steps involved in JDBC connectivity. Compare Applet communication with socket communication. The ball should be initiated with a mousePressed event. What is session tracking? How it is implemented in Java Servlet? NOV/DEC 2009 1.(12) 2. 3. 3. draw a solid-black oval at the bottom of the applet. Explain the JDBC configuration process and write a Java program to automate the savings bank application with deposit and withdraw operations using JDBC. What is Session Tracking? Write a program for implementing session tracking. Explain the servlet creation with an example (8) 4. Illustrate the uses on ‘image maps’. What is JAVA Media framework?
MAY/JUNE 2007 1.
. 2. Discuss the Java Media Framework in detail.
2. What is Bean Box? 2. What is an enterprise application? List the technologies available for implementing application. 2. Explain the passivation and activation processes in EJB. Discuss the design issues in modeling using Session and Entity EJBs. What are the Java technologies used to create server components? NOV/DEC 2007 1.(8) APRIL/MAY 2008 1. 3. List out the feature of J2EE framework and highlight the importance of each features. Difference between Entity beans and Sessions beans. (10) 3.(6) NOV/DEC 2007 1. How J2EE architectural model is used for creating distributed system? Explain it with example. Explain how to develop. Write steps for developing a simple beans using BDK. Enumerate the features and the applications of J2EE. Explain the process of executing a J2EE based application. build. What are the advantages of Java Beans? 2. List the different types of sessions beans
MAY/JUNE 2007 1. Explain stateful and stateless session beans with example. 2. Write a stateless session bean to convert a dollar value into rupees. List out the different types of entity bean.(16) 2. Write a simple program for creating reusable component using Java Beans(8) 2. Compare container Managed Persistent Entity bean with Bean Managed Persistent Entity Bean. 3. Explain bean context and relationship bean context classes. Explain the steps involved in developing and deploying an Entity Bean with an example. What does a session bean do? APRIL/MAY 2008 1. 2. Define a component. It should also display the mean of the input values. Compare entity bean with session bean. Explain the steps involved in assembling and deploying of EJB NOV/DEC 2009 1. NOV/DEC 2009 1. 5. Discuss in detail the J2EE architecture. Which types of objects are used to represent multimedia data in JAVA? 2.
. 4.Unit V 2 Marks
MAY/JUNE 2007 1. enterprise
May/June 2009 1. Explain concepts and use of Entity Beans and Persistent Entity Beans. 4. List the various components of a bean window. May/June 2009 1.(8) 4. deploy and test Calculator Stateless Session Bean for summing the values entered by user.(8) 3. 2. 3.