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

JAVA Question[1]

Uploaded by

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

JAVA Question[1]

Uploaded by

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

1. What are the features of JAVA Language?

2. What are the features of ObjectOriented Programming?


3. What are the difference between Procedural and Object Oriented Programming?
4. What is Byte Code?
5. What is JVM?
6. What is JIT?
7. What do you mean by WORA? Ans-Java applications are called WORA (Write Once Run
Anywhere). This means a programmer can develop Java code on one system and can expect
it to run on any other Java-enabled system without any adjustment
8. Why JAVA programs are called Platform Independent? Ans- Java is platform-independent
because it is compiled to a bytecode that can be run on any device that has a Java Virtual
Machine (JVM).
9. JAVA programs are Platform Independent but JVM is not – EXPLAIN.
10. What is JRE?
11. Why JAVA is called Strongly Typed Language?
12. Why JAVA is not 100% Object Oriented Programming Language?
13. Explain different datatypes in JAVA.
14. How float is declared and initialized?
15. What is the use of Boolean?
16. How array is declared and initialized?
17. How 2-D Array is initialized?
18. What is Short Circuit Operator in JAVA?
19. What is the difference between & and &&?
20. What is Ternary Operator?
21. What do you mean by Casting/Typecasting? Explain with an example.
22. What is the difference between Widening and Narrowing? Explain with an example.
23. What do you mean by automatic type conversion?
24. What is the difference between break and continue statement?
25. What is the use of return statement?
26. Define Class and Object.
27. Why it is called Instance Variable and Instance Method?
28. What is the use of new keyword?
29. What is Object Reference Variable?
30. What is Constructor? Difference between method and constructor.
31. Explain parametrized constructor with a suitable code.
32. What is the use of this keyword?
33. What do you mean by Garbage Collection? What is the use of finalize method?
34. Define method overloading. Explain method overloading with a suitable code.
35. Explain constructor overloading with a suitable code.
36. How method takes an object as a parameter. Explain with code.
37. Primitive types are pass by value and objects are pass by reference – Explain with suitable
code. / What is the difference between call by value and call by reference.
38. How a method returns an object. Explain with code.
39. What is recursion? Write a recursive method to calculate the factorial of a given positive
integer using object.
40. What is Static Variable?
41. What are the restrictions of static method?
42. Demonstrate static variable, static method and static block with a suitable code.
43. What is the use of final in JAVA?
44. What is the use of length property in array?
45. What do you mean by nested class?
46. How many types of nested classes are there?
47. What is the drawback of static nested class?
48. What do you mean by inner class? Illustrate inner class with a suitable code.
49. What is the difference between instance variable and class variable?
50. What is the use of static block?
51. What is Inheritance?
What are the different types of inheritance?
What are the advantage of inheritance?
52. Explain single inheritance with a suitable example.
53. What are the uses of super keyword?
54. Explain Multilevel Inheritance with a suitable example.
55. What is Method Overriding? Explain with a suitable example.
56. What is the difference between Method Overloading and Method Overriding?
57. How do you access a super class version of an overridden method from sub-class? Explain
with example.
58. “Methods with different type signatures are overloaded not overridden”-Explain.
59. Explain Dynamic Method Dispatch with an example.
60. A super class reference can store a sub class object – Explain with example.
61. What is abstract class?
Explain abstract class and abstract method with an example.
62. What are the uses of final?
63. What is Package?
What is the package used for?
64. How do you create a package? Explain with example.
65. What is the use of import statement?
How do you import a package created by you in a program? Explain with example.
66. What are the different access specifiers in JAVA?
67. What is the use of protected keyword?
68. What is the difference between extends and implements keyword?
69. What is Interface? What are the differences between interface and abstract class?
70. How Multiple Inheritance is implemented in JAVA? Explain with example.
71. What is Exception?
72. What do you mean by Exception Handling?
73. What is the default exception handler?
74. How do you handle a divide by zero error in your program explain with example.
75. What is the use of try catch block?
76. What is use of throw keyword?
77. Explain the use of throws keyword with an example.
78. Explain the use of finally block with an example.
79. What is the difference between throw and throws keyword?
80. What is the difference between checked and unchecked exception? Explain with example.
81. What is the difference between final, finalize and finally?
82. Difference between error and exception?

You might also like