Question Bank
Question Bank
6. What is the difference between int and float data types?
2. Describe the Java Virtual Machine (JVM) and its role.
✅ Control Structures
21.Describe different types of conditional statements in Java.
✅ Object-Oriented Concepts
21.What is inheritance? Explain its types in Java.
29.Explain the difference between one-dimensional and two-dimensional arrays with examples.
36.List and explain the core interfaces of the Java Collection Framework.
Programs:
8. Write a Java program to check whether a number is an Armstrong number or not.
9. Write a Java program to check whether a number is a perfect number or not.
14.Write a Java program to copy all elements of one array into another.
17.Write a Java program to count the number of vowels and consonants in a string.
21.Write a Java program to swap two numbers without using a third variable.