java questionbank
java questionbank
a. Arrays in java
b. Inheritance in java
c. Packages vs Interface
d. Try-Catch-Finally
e. Switch Keyword
f. AWT in Java
ii) Write a Java program to read and display the array elements.
a) i) What is a Java Exception and its Types.
ii) Describe the Map interface in Java. How does it different from Set and List.
Q.4 OR
b) i) Define Daemon Threads? Explain with an example.
ii) Create a java program to display “Hello! Java” using Class, Object and Method.
Q.5
OR
b) i) Write a Java program to sum of two numbers by taking input from the user.
ii) What is an interface? List the rules to create an interface in java with example
a) i) Wha a) i) What are the common exceptions encountered during file I/O operations in Java
ii) Define Class, Method, and Object? Show the syntax to define these in java.
a. Decision Making
b. Checked and Unchecked
c. Break Keyword
d. JDK, JRE and JVM
e. String in java
f. AWT Components