0% found this document useful (0 votes)
5 views

Java

The document contains questions about Java concepts like JVM memory areas, main method overloading and arguments, static vs instance methods, exception handling, control statements, recursion, arrays, OOP concepts like inheritance and polymorphism, collections, multithreading and more.

Uploaded by

Meet Patel
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views

Java

The document contains questions about Java concepts like JVM memory areas, main method overloading and arguments, static vs instance methods, exception handling, control statements, recursion, arrays, OOP concepts like inheritance and polymorphism, collections, multithreading and more.

Uploaded by

Meet Patel
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

1. How many types of memory areas are allocated by JVM?

2.What is the main difference between Java platform and other platforms?

3. What is the difference between static (class) method and instance method?

4. Can we overload main() method?

5. What if the static modifier is removed from the signature of the main method?

6. What is JIT compiler?

7. Why we cannot override static method?

8. What is static block?

9. Can you declare the main method as final?

10. What is the difference between StringBuffer and StringBuilder?

11. What is the first argument of the String array in main() method?

12. Explain about Checked and UnChecked Exception?

13. What if I do not provide the String array as the argument to the method?
14. What is the difference between break, continue and return statements?
15. Write a code to reverse the string using recursion.
16. Write a code to find second largest number from given array.
17. Difference between final, finally and finalize
18.Explain about Predicate, Function, Consumer and Supplier
Oops concepts
Internal working of hash map
Then questions from strings concepts
Jvm architecture
Collection questions
Mulithreading
3.What will happen if we copy interface method in abstract class

You might also like