0% found this document useful (0 votes)
14 views

Java MU Questions (E-Next - In)

The document contains questions about Java programming concepts across multiple units including object oriented programming, classes, packages, interfaces, exceptions, multithreading, file handling, GUI programming, database programming, web development using servlets and JSP, and the Spring framework. The questions range from basic to advanced level concepts in Java.

Uploaded by

deepak kumar
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views

Java MU Questions (E-Next - In)

The document contains questions about Java programming concepts across multiple units including object oriented programming, classes, packages, interfaces, exceptions, multithreading, file handling, GUI programming, database programming, web development using servlets and JSP, and the Spring framework. The questions range from basic to advanced level concepts in Java.

Uploaded by

deepak kumar
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

Unit-1 Fundamentals of Java Programming

Q.1 What is Object Oriented Programming? Explain OOP's Concepts in java with suitable
examples. ★ ★★

Q.2 Differentiate between C++ and JAVA. ★ ★


Or Differentiate between C, C++ and Java. ★

Q.3 Explain features of JAVA language. ★

Q.4 Explain the JDK, JVM and Bytecode. ★


Q.5 What is JDK and JRE. ★

Q.6 Write a short notes on Data types. ★ ★

UNIT-2 Object and Classes


Q.1 What is constructor? Explain the types of constructor. ★★
Q.2 What is Constructor? Explain Parameterized constructor and Constructor Overloading. ★

Q.3 Write a short notes on Abstract classes and Wrapper classes. ★ ★★


Q.4 Explain Wrapper classes with suitable program. ★
Or Explain use of Wrapper Classes. Explain boxing and unboxing in Java. ★

Q.5 What is Inheritance? Explain hybrid inheritance with suitable example. ★★


Q.6 How do we achieve multiple inheritance in java? Explain with java program. ★
Q.7 Explain why java don’t support multiple inheritance. Write a program to demonstrate use
of Interface. ★ ★★

Q.8 Write a short note on Static keyword. ★★


Q.9 Explain use of Static Variables and methods in Java. ★

Q.10 Write a short note on super keyword. ★★

Q.11 Write a short note on inner class. ★ ★★

Q.12 Explain the difference between


a) Interfaces and Abstract classes. ★
b) Method Overloading and Method Overriding. (Example) ★★

Q.13 Write java program to demonstrate use of final keyword. ★

Q.14 What is garbage collection? Explain the use of GC class? What is finalize method?

Q.15 Write a short note one string and mutable string. ★


Q.16 What is StringBuffer class? Write a program to append a string. ★★

Khan S. Alam https://E-next.in


Q.17 What is polymorphism?

Q.18 Write a short note on this (pointer) keyword. ★★


Q. Explain the concept of final methods and final variables with a program.

UNIT-3 Packages and Interfaces


Q.1 What is package? Write a program to create a Package? Create a package to hold to two
classes. ★ ★★★★
Q.2 Write a short note on package. ★

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. ★

Q.6 List the Java API packages. ★

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.

UNIT-5 Exception Handing


Q.1 What is Exception? Explain the steps to create your own exception with a suitable
example. ★ ★★★★

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. ★

Khan S. Alam https://E-next.in


Q. Differentiate between Checked Exception and Unchecked Exception. ★

Q. Write user defined Exception to raise Exception for Account class if balance amount is
below 1000 Rupees. ★

Q.6 What is java annotation.

Q.7 What is java Assertion.

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.5 What is multithreading environment? ★★★★

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.8 What is java thread model.

Q.9 What is Priority of a Thread (Thread Priority).

Q.10 What is ThreadGroup class. ★

Q.11 What is Inter-thread communication.

Q. Write a program to display the table 5, 7, 13 using Thread concepts. ★

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 Which are the Stream classes? Explain it in detail. ★

Khan S. Alam https://E-next.in


Q.5 Differentiate between Byte Stream and Character Stream. ★

Q.6 Diffrence between Input stream and output stream. ★

Q.7 What is Buffered Reader/Writer.

Q. Draw a hierarchy of input stream classes. 1


Q. Explain file management in Java. 1

UNIT-8 Event handling and GUI programming


Q.1 Difference between AWT and Swing. ★★★★
Q.2 Compare Applet and Application. ★★★★

Q.3 Explain Life Cycle of Applet with a suitable program. ★★★★

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.10 Explain any five swing components with an example. ★★

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

UNIT-9 Database Programming


Q.1 What are available drivers in JDBC? What does classforName() method do? 2
Q.2 What are database driver? Which are the types of database drivers? 2
Q.3 Explain the different ways in which driver can be loaded in a JDBC application with an
example of each method. 1

Q.4 Explain the role of Driver Manager Class with suitable java program. 1

Q.5 Explain JDBC architecture with neat diagram.

Khan S. Alam https://E-next.in


Q.6 Explain different resultset constant and resultset types? 3

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.

UNIT-10 Web development using Servlets


Q.1 What are servlets? Explain servlet life cycle in detail with example? 5

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.8 Compare servlet and CGI. 1

Q.9 What is differences between Generic Servlet and Http 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.

Khan S. Alam https://E-next.in


UNIT-11Web development using JSP

Q.1 What is JSP? Explain JSP Life Cycle with suitable example. 2

Q.2 Explain JSP Architecture with neat diagram. 2

Q.3 Explain JSP Implicit objects. 1

Q.4 What are actions in JSP? Explain any four actions in JSP with a program. 1

Q.5 What is directives? Explain different types of directives in JSP? 1

Q.6 Explain Custom tags in JSP. 1

Q.7 Write a short note on JSP scripting language.


Q.8Write a short note on Error handling in JSP.
Q.9 Explain JSTL tags in details.

Q.7 Write a JSP program for the agriculture field to store farmer information in database. 1

UNIT-12 Introduction to Spring Frameworks


Q.1 Explain architecture of Spring Framework.
Q.2 What is Aspect-Oriented Programming (AOP).

-------------------------------------------------------------------------------------------------------------------------------
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?

Q. Write a short note on visibility modifiers in Java.


Q. What is XML? Explain structure of XML DTD. 3
Q. Write a short note on Cascading style sheets (CSS).
Q. List the characteristics of Java Sockets.

Khan S. Alam https://E-next.in

You might also like