Unit1 - Subjective Questions

CSE310 • Practice Questions with Detailed Answers

1

Explain the key features of Java that make it a popular programming language.

2

Differentiate between JDK, JRE, and JVM. Explain their relationship.

3

Dissect the signature of the main method in Java: public static void main(String args[]).

4

Explain the concept of Type Conversion in Java. Differentiate between Implicit and Explicit type casting with examples.

5

What are the primitive data types available in Java? List them with their sizes.

6

Define Identifiers in Java. What are the rules and conventions for defining valid identifiers?

7

Explain the Bit-wise operators in Java with suitable examples.

8

What is the static keyword? Explain its usage with variables and methods.

9

Compare the different Access Modifiers available in Java.

10

Describe the syntax and working of the switch-case statement. What is the role of the break keyword?

11

What are Wrapper Classes? Explain the concepts of Autoboxing and Unboxing.

12

Explain the Ternary Operator with syntax and an example. How is it different from if-else?

13

What are Command-Line Arguments? Write a Java program to print all arguments passed via the command line.

14

Explain Operator Precedence and Associativity in Java. Calculate the value of x in: int x = 5 + 10 * 3 / 2;

15

Discuss the difference between the Short-circuit logical operators (&&, ||) and standard logical operators (&, |).

16

What is Java Bytecode? How does it contribute to platform independence?

17

Write a simple Java Class structure illustrating fields, methods, and object creation.

18

Explain the scope and lifetime of variables: Local, Instance, and Static.

19

How does the Just-In-Time (JIT) compiler improve the performance of Java applications?

20

Write a Java program to find the largest of three numbers using Nested If-Else statements.