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

Java Programming Question Bank

The document is a question bank for a Java Programming course, structured into five units covering various topics such as Java language advantages, object-oriented programming concepts, exception handling, threading, and JDBC features. Each unit contains multiple questions that require explanations, code examples, and comparisons of Java with other programming languages. It serves as a comprehensive resource for students to prepare for exams and understand key Java programming concepts.

Uploaded by

superstar120024
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views2 pages

Java Programming Question Bank

The document is a question bank for a Java Programming course, structured into five units covering various topics such as Java language advantages, object-oriented programming concepts, exception handling, threading, and JDBC features. Each unit contains multiple questions that require explanations, code examples, and comparisons of Java with other programming languages. It serves as a comprehensive resource for students to prepare for exams and understand key Java programming concepts.

Uploaded by

superstar120024
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

24MCAP105 Java Programming

Question Bank

Unit I
1. What are the advantages of Java Language?
2. Give the contents of Java Environment (JDK).
3. Explain about JRE and JVM
4. Give any 4 differences between C and Java.
5. Give any 4 differences between C++ and Java.
6. Explain features of java programming.
7. Explain History and Evolution of Java?
8. What is type casting? Explain its types with proper syntax and example.
9. Illustrate widening and narrowing with suitable examples
10.State & explain scope of variable with an example.
11.Write a java program to display all the odd numbers between 1 to 30 using
for loop & if
statement.
12.What are Java Selection Statements? Give an example to each one.
13.Define Data Type. Criticize the declaration of variable in Java.
14.What is an Array? Explain types of arrays in Java with example.
15.Write a Java program to transpose the given matrix elements
16.Write a Java program to read and display the array elements in order.
17.What are jagged arrays? Explain
18.What are the OOP Principles?
19.What is Encapsulation?
20.What is Polymorphism?
21.What is Inheritance?
Unit II
1. Define a class and object. Write syntax to create class and object with an
Example.
2. What is mean by OOP? Explain OOP Concepts?
3. What is a Constructor? Explain types of Constructors in Java? Write a java
program to find the Area of Circle using Constructor.
4. Discuss about the static, final keywords with an example.
5. Recall Inheritance? Illustrate the types of inheritances.
6. Discuss about the super keyword in java with example.
7. Compare Method Overriding and Method Overloading.
8. Write separate programs that shows the implementation of
a. (i)static variable and static member function
b. (ii)static block concept
9. Write a program that shows the use of default, parameterized and copy
constructor.
10.Write separate programs for method overloading and method overriding
mechanism.
11.Write a program for single inheritance mechanism.
12.What are the OOP Principles?
13.What is Encapsulation?
14.What is Polymorphism?
15.What is Inheritance?
16.Explain the various types of access controls
17.What is the difference between Concat method and + operator to join
strings?
18.What is String Buffer?
19.How does String class differ from the String Buffer class?
20.Name some methods available under String Buffer class.

Unit III

1. Assume that a program execution terminated abnormally, How will you make it run
normally?
2. Discuss the various types of exceptions in Java
3. How will you create a package? Discuss
4. Discuss the issues in multiple inheritance
5. How will you implement multiple catches? Discuss
6. List some built-in packages provided in Java
7. Give an example of user defined exception
8. Distinguish between errors and exceptions

Unit IV

1. Illustrate the various stages of thread life cycle


2. What are the ways to create a thread in Java? Discuss
3. Distinguish between normal array and arraylist
4. List and explain the thread methods
5. Discuss about ArrayList and its methods in collections
6. What is meant by vector in collections? Discuss

Unit V

1. Discuss in detail about JDBC features


2. List and explain the SQL based methods provided in JDBC
3. Describe about type-2 driver and its features
4. List and explain the methods used in JDBC
5. Explain type-1 driver and its features
6. Explain type-4 driver and its features
7. List and explain the SQL based methods provided in JDBC
8. Discuss about type-3 driver with its features
9. What are warnings and exceptions handled while using JDBC

You might also like