Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

OOP_Viva_S3CSEGamma

Total questions: 20

Worksheet time: 3600secs

Name
Class
Date
1.

Explain the role of the Java Virtual Machine (JVM) in executing a Java program

4 lines
2.

What are Java Buzzwords? Mention any four.

4 lines
3.

Write the general structure of a Java program and mark the main method.

4 lines
4.

Give a short code showing if–else if ladder in Java.

4 lines
5.

How do you declare and initialize a two-dimensional array in Java?

4 lines
6.

Define a class and an object with a small example.

4 lines
7.

Explain method overriding with an example hierarchy.

4 lines
8.

How do you write data to a file using FileWriter?

4 lines
9.

Differentiate between checked and unchecked exceptions.

4 lines
10.

What happens when an exception is not caught?

4 lines
11.

Write a code snippet to find length of a string and reverse it.

4 lines
12.

Differentiate between String and StringBuffer classes.

4 lines
13.

How can you compare two strings ignoring case?

4 lines
14.

Show an example of searching for a substring inside a string.

4 lines
15.

What is a thread? How do you create a thread by extending Thread?

4 lines
16.

Show minimal code of a JavaFX application class with start() method.

4 lines
17.

How do you create a form with text fields and button in JavaFX?

4 lines
18.

What are the steps to connect Java to a database using JDBC?

4 lines
19.

Write a code fragment to insert a record into a database table.

4 lines
20.

How do you retrieve data using SELECT query in JDBC?

4 lines