KEMBAR78
Important Questions - Java (2025) | PDF | Method (Computer Programming) | Java (Programming Language)
100% found this document useful (1 vote)
5K views2 pages

Important Questions - Java (2025)

The document contains a list of important questions related to Java programming, covering topics such as object-oriented programming features, access specifiers, garbage collection, exception handling, threading, and inheritance. Each question prompts detailed explanations or code examples to illustrate key concepts in Java. The questions aim to assess knowledge and understanding of Java's functionalities and programming paradigms.

Uploaded by

nancyokay001
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
100% found this document useful (1 vote)
5K views2 pages

Important Questions - Java (2025)

The document contains a list of important questions related to Java programming, covering topics such as object-oriented programming features, access specifiers, garbage collection, exception handling, threading, and inheritance. Each question prompts detailed explanations or code examples to illustrate key concepts in Java. The questions aim to assess knowledge and understanding of Java's functionalities and programming paradigms.

Uploaded by

nancyokay001
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

Important Questions - Java

1. Describe Java as an object-oriented programming language. What are the key features of Java?
2. Explain in details the features of Java.
3. Explain different access specifiers in Java.
4. Explain why the main function is declared as “public static void main (String args[])”?
5. Discuss all the three usage of final keyword. What is the use of this and super keyword?
6. What is the difference between int and Integer?
7. Describe garbage collection in Java. How does it work?
8. How can a derived class constructor pass argument to base class constructor?
9. What is the difference between an abstract class and an interface in Java?
10. Why we need both run and start method in multithreading
11. What are the uses of “super” and “this” keyword? Explain
12. Explain JVM, JRE and JDK with suitable diagrams and explain all functionalities.
13. Explain Exception Handling with an example program. Discuss in detail throw' and
throws' keywords.
14. What is the role of stack in exception handling?
15. array in Java along with its working
16. What do you mean by Daemon thread? How can you set priority of a thread?
17. Describe the String class in Java. Explain any 5 string class methods in detail.
18. How is method overloading different from method overriding? Explain with the help of a
suitable code
19. What is constructor in Java? Explain the different types of constructors. Does Java
provide default constructor? Explain your answer with suitable example.
20. What is the purpose of static block, static variable and static method in Java?
21. Explain how method overriding is achieved with covariant return type.
22. Explain all the characteristics of abstract class in Java. Write suitable piece of code.

23. What is Inheritance? Explain different types of Inheritance in Java with suitable diagram
and small segment of codes.
24. Differentiate between checked and unchecked exceptions. What is the role of stack in
exception handling?
25. Write a program to demonstrate the concept of user defined exceptions.

26. Explain the life cycle of Thread. Describe any five methods from thread class.
27. Explain Thread life cycle. Also Explain the different states of a thread. What is
synchronization of Threads
28. Difference between Thread Class and Runnable Interface
29. Write the difference between String and StringBuffer Class. Write five methods of each.
30. Write a java program to accept two file names as command line argument. Copy only
those lines from the first file to second which contains the work computer'.
31. Write a program which demonstrate how exceptions are implemented.

You might also like