0% found this document useful (0 votes)
34 views5 pages

Technical PI Questions

Technical PI questions

Uploaded by

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

Technical PI Questions

Technical PI questions

Uploaded by

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

Technical PI Questions

1. What is Java?
2. Why is Java a platform independent language?
3. What are the differences between C++ and Java?
4. Why is Java not a pure object oriented language?
5. List the features of the Java Programming language?
6. What do you get in the Java download file?
7. Explain JVM, JRE, and JDK.
8. Differentiate between instance and local variables.
9. What is the final keyword in Java?
10. What happens when the main() isn't declared as static?
11. Why is Java a platform independent language?
12. What does the “static” keyword mean ? Can you override private or static
methods in Java ? .
13. Does Java support multiple inheritance ?
14. Why is the main method static in Java?
15. What are the differences between constructor and method of a class in Java?
16. Why does the java array index start with 0?
17. What are pass by reference and pass by value ?
18. What is a ClassLoader?
19. What are the Memory Allocations available in JavaJava?
20. What is Function Overriding and Overloading in Java ?
21. What are the differences between Heap and Stack Memory in Java?
22. What does the “static” keyword mean ? Can you override private or static
method in Java
23. Define Wrapper Classes in Java.
24. Define Copy Constructor in Java
25. What is constructor and its type.?
26. What is the default value stored in Local Variables?
27. Can you access non static variable in static context ?
28. What is static keyword in java?
29. What is static method in java?
30. What are the Data Types supported by Java ? What is Autoboxing and
Unboxing ?
31. What is static class in java?
32. What is this keyword in java?

Basic Concepts

1. What is Java?
Explain the key features of Java.
2. Explain JVM, JRE, and JDK.
What is the difference between them?
3. What are the main features of Java?
Discuss concepts like platform independence, object-oriented, and more.
4. What is a Class and an Object?
Explain with examples.
5. What is Inheritance in Java?
How is it implemented?
6. What is Polymorphism?
Explain with examples of method overloading and method overriding.
7. What is Encapsulation?
How does Java achieve encapsulation?
8. What is Abstraction?
How is abstraction implemented in Java?
9. What are Constructors in Java?
Explain default and parameterized constructors.
10. What is the difference between a constructor and a method?
Data Types and Operators

11. What are the different data types in Java?


12. What is the difference between primitive and non-primitive data types?
13. What are the various operators available in Java?
Discuss arithmetic, relational, logical, bitwise, and assignment operators.

Control Flow Statements

14. What are the different control flow statements in Java?


Discuss if-else, switch-case, loops (for, while, do-while), and break/continue
statements.
15. What is the difference between 'break' and 'continue' statements?

Object-Oriented Programming Concepts

16. What is the difference between an Interface and an Abstract class?


17. What is the difference between method overloading and method overriding?
18. Can we override static methods in Java?
Explain why or why not.
19. What is a package in Java?
Explain its significance.
20. What is 'this' keyword in Java?
21. What is 'super' keyword in Java?

Strings and Arrays

22. What is a String in Java?


How are Strings immutable?
23. What is the difference between String, StringBuilder, and StringBuffer?
24. How do you compare two strings in Java?
25. What are Arrays in Java?
How do you initialize an array?
26. What is the difference between a one-dimensional and a multi-dimensional array?

Exception Handling

27. What is Exception Handling in Java?


28. What is the difference between checked and unchecked exceptions?
29. What are try, catch, finally, and throw keywords?
30. What is the difference between 'throw' and 'throws' in Java?

Collections Framework

31. What is the Java Collections Framework?


32. What is the difference between List, Set, and Map?
33. What are the main implementations of the List interface?
34. What is the difference between ArrayList and LinkedList?
35. What is a HashMap in Java?
How does it work?

Multithreading

36. What is a Thread in Java?


37. What is the difference between 'extends Thread' and 'implements Runnable'?
38. What is synchronization in Java?
How is it achieved?
39. What is the difference between a process and a thread?
40. What are the different ways to create a thread in Java?

File Handling and I/O

41. What are the classes in Java used for File Handling?
42. What is the difference between FileReader and FileWriter?
43. What is serialization in Java?

Miscellaneous

44. What is Garbage Collection in Java?


How does it work?
45. What are Wrapper classes in Java?
46. What is the difference between == and .equals()?
47. What is the 'final' keyword in Java?
Explain with examples of final variables, methods, and classes.
48. What is the purpose of the 'transient' keyword in Java?
49. What is a singleton class in Java?
How do you create one?
50. Explain the use of 'instanceof' keyword in Java.

You might also like