Java Theory Questions
Java Theory Questions
www.pavantestingtools.com
}
www.pavantestingtools.com
40. What is use of super keyword?
41. How to achieve multiple inheritance in java?
42. What is interface?
43. What is the default access modifier of interface variables and methods?
44. What is the usage of final variable at variable, method level and class level?
45. What is abstract method?
46. What is java package?
47. How to import external package?
48. What are the access modifiers in java?
49. What is the default access modifier in java?
50. What is exception? What are the types of exceptions in java?
51. What is the advantage of Exception Handling?
52. What are the different ways of handling exceptions?
53. What is use of finally block in exception handling?
54. Explain final and finally keywords in java?
55. What is difference between array and arraylist in java?
56. How to declare arraylist in java?
57. How to read elements from arraylist?
58. How to check number of elements presents in array list?
59. How to remove all the elements from array list?
60. How to insert elements to arraylist?
61. What is hashmap?
62. What is keyset in hashmap?
63. What is JDBC? Explain how to connect to database using JDBC program?
www.pavantestingtools.com