Java MU Questions (E-Next - In)
Java MU Questions (E-Next - In)
Q.1 What is Object Oriented Programming? Explain OOP's Concepts in java with suitable
examples. ★ ★★
Q.14 What is garbage collection? Explain the use of GC class? What is finalize method?
Q.3 Explain the various levels of access protection available for packages & their implications.
★
Q.4 How do we achieve multiple inheritance in java? Explain with java program. ★★★
Q.5 Explain any five built-in packages of java also write steps to create a package. ★
UNIT-4
Q.1 What are Lambda Expressions? Explain syntax and use of Lambda expressions with a
suitable program. 1
Q.2 What is Generics in java?
Q.3 Write a short note on Collections in java.
Q.2 Explain how Exception handling is done in java. Write a program to demonstrate use of
throw and throws keyword. ★★
Q.3 Which are the types of Exception? Explain try, catch, finally, throw & throws keyword.
★★
Q.4 Write java Exception handling program to demonstrate any two java's unchecked
Runtime exception subclasses. ★ ★
Or Explain concept of Checked and unchecked exception with an Example of each. ★
Q.5 Define an exception called "No Match Exception" that is thrown when a string is not
equal to "Mumbai". Write a program that uses this Exception. ★
Q. Write user defined Exception to raise Exception for Account class if balance amount is
below 1000 Rupees. ★
UNIT-6 Multi-threading
Q.1 Explain thread life cycle in detail. ★ ★★★ Write a program to create two threads (inter
thread communications). ★★★
Q.2 What is thread? Explain thread life cycle in detail. ★★
Q.3 How the thread is created? Draw the life cycle of thread. ★
Q.4 Write a program to demonstrate the thread life cycle. ★★
Q.6 What is synchronization? What is use of synchronization in Java? Explain with example.
★
Q.7 Explain thread synchronization in detail. ★
Or Write a program to showing multiple threads working upon single object using
synchronized keyword. ★
Q. What is Data Race Condition? Explain how you will eliminate data race condition in
multithreaded application in java. Give an example? 1
UNIT-7 File Handling
Q.1 Explain Object Serialization and deserialization with suitable example. ★★★★
Q.2 What is serialization/desrialization of objects? Why do you need it? Give the example
with necessary code. ★
Q.3 What is object serialization? What is use of serialVersionUID? ★
Q.4 Explain Event delegation Method? Explain it? Explain ItemListener and Mouselistner
interface. ★ ★★★★★★
Q.5 Write Applet program to handle mouse events. ★
Q.6 What is Adapter class. ★
Q.7 State the five Layouts in Layout Managerfor Java AWT.Show the layouts displayed by
each of these Layout. ★
Q.8 What is Layout? Explain diffrent types of layout manager in detail? ★★
Q.9 Write a short note on BorderLyout and GridLayout. ★
Q.11 Write a program to create a Web based GUI application for student registration form
using swing. ★ ★
Q.12 Write a program to create a GUI by using any five controls of AWT. ★
Q.13 Write an applet program that will show GUI components like line, ellipse, polygon, etc .
★
Q. Compare Applet and Application. 1
Q.4 Explain the role of Driver Manager Class with suitable java program. 1
Q.7 What is JDBC? Explain steps to connect java program to Oracle database using type 4
drivers. 1
Q.8 Describe the steps involved in a Java program in order to get connectivity to a database. 3
Write a Java program to display all the value from the student database. 1
Q.9 Write JDBC – ODBC program to create table professor (id, dept_no, no_of_publications,
outstanding) insert five records into table update table if number of publications are mo re
than ten set outstanding to ‘yes’ else it to ‘no’. 1
Q.10 What is a Statement in JDBC? Explain the various kinds of statements that can be
created in JDBC.
Q.11 Explain the PeparedStatement with suitable example.
Q.12 Explain working with ResultSetMetaData interface in JDBC?
Q.13 Write a short note on Java.sql package.
Q.14 Write a short note on JdbcRowSet.
Q.2 What is cookies? Write a simple program to design to page visit counter using cookie. 3
Q.3 What is Cookie class? Which are methods of Cookie class? Explain with the help of
example. 1
Q.4 Write a servlet program to add cookies. 1
Q.5 What is session tracking in servlets? Write s program to illustrate use of HttpSession API
to maintain state in servlet application. 1
Q.6 How do we achieve session tracking in servlet? 1
Q.7 Write a short note on Session tracking in servlet. 1
Q.10 Explain Request Dispatching in Servlet. What are difference between Request
Dispatching and send redirecting? 1
Q.11 Explain Dynamic method Dispatch with suitable java program. 1
Q.12 When a client request is sent to the servlet container, how does the container choose
which servlet to invoke? 1
Q.13 Write a short note on ServletConfig and ServletContext.
Q.14 Write a short note on Handling HTTP Request and response –GET / POST method.
Q.1 What is JSP? Explain JSP Life Cycle with suitable example. 2
Q.4 What are actions in JSP? Explain any four actions in JSP with a program. 1
Q.7 Write a JSP program for the agriculture field to store farmer information in database. 1
-------------------------------------------------------------------------------------------------------------------------------
Q. Difference between strut 1.X and strut 2.X 3
Q. What is Struts? Explain Struts architecture. 3
Q. What is Struts? Explain features of struts.
Q. What is EJB? What are different types of EJB and explain EJB Architecture with neat
diagram? 5
Q. What is EJB? Explain Entity bean & message driven bean.
Q. Explain callback methods in Entity beans.
Q. What is advantage of putting business logic in EJB over stored procedure?