Nothing Special   »   [go: up one dir, main page]

0% found this document useful (0 votes)
42 views2 pages

Java Important Questions

Download as docx, pdf, or txt
Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1/ 2

Java Important Questions

Unit-III
1) Define an array. List and explain the arrays operations with neat
example.
2) Write a java program to find the minimum and maximum element in an
array.
3) Explain varying length arrays in java.
4) What is inheritance? List the different types of inheritance with neat
diagram.
5) Explain multi-level inheritance with neat example.
6) Explain the following keywords. a) final b) super
7) Define method overriding. Explain method overriding with neat
example.
8) What is abstract class? Write a java program to implement abstract
class shape using dynamic method dispatching.
9) What is multiple inheritance. Explain how you can implement multiple
inheritance in java using interfaces.
10) List the characteristics of interface. What are the advantages of
default method and static methods in an interface.
11) Implement functional interface with neat example.
Unit-IV
1) Define package. List and explain different types of packages.
2) Explain auto boxing and auto unboxing with neat examples.
3) List and explain built-in packages in java.
4) What is user defined package. Explain the process of user defined
package and how to import that in another application.
5) What is the purpose of classpath in java.
6) Define an Exception. Draw the Exception class hierarchy with neat
diagram.
7) Explain about checked Exception and unchecked Exception with an
example.
8) Implement try with multi catch in java with neat example.
9) Explain the use of throw and throws keywords in java with neat
examples.
10) Explain the process of user define Exception in java with neat
example.
Unit-V
1) List and explain the standard I/O Streams in java. [i.e System.in,
System.out, System.err]
2) List the Byte Stream classes and write a java program to copy the data
from one binary file another file.
3) List the Character Stream classes and write a java program to copy the
data from one txt file to another.
4) Define String. List and explain any 6 methods of String class.
5) What is the difference between String and StringBuffer. List the
methods of StringBuffer with an example.
6) Define a Thread. Explain the life cycle of a Thread with neat diagram.
7) Explain the process of creation of threads in java. [i.e by extends
Thread class or by implements Runnable interface].
8) Write a JAVA program that creates threads by extending Thread class.
First thread display “Good Morning “every 1 sec, the second thread
displays “Hello “every 2 seconds and the third display “Welcome”
every 3 seconds
9) What Thread Synchronization? Explain it with a neat example.
10) Write a Program illustrating Daemon Threads.
11) Draw and explain the JDBC architecture with a neat diagram.
12) Write a java program to connect with mysql database.
13) Write a java program to insert the records into the table of mysql
database.
14) Write a java program to perform the deletion of records from the
table.
15) Write a java program to retrieve the data from a table of mysql
database.
16) How to display a text and image using Java FX Scene Builder.

You might also like