1. Write a Program to print numbers from 1 to 10 using a loop.
2. Write a Program to take a number as input and check whether it
is even or odd.
3. Write a program to find the factorial of a number.
4. Write a program to print Fibonacci series up to n terms.
5. Write a program to find the largest number in an array.
6. Write a program using switch to display day name based on input.
(1-7).
7. Write a program to demonstrate method overloading.
8. Write a program to demonstrate inheritance using extends.
9. Write a program to take user input and print its square using a
method.
10. Write a program to store 5 numbers in an array and print them.
Theory Questions:
Q1. Define Java, and explain why it is platform independent?, write
about JVM, JRE, JDK?
Q2. Define data-types in java, and also explain the decision-making
statements?
Q3. Explain loops in java and its types also?, & define the access
modifiers in java?
Q4. Define Class and objects in java and also write down the OOPS
concept in java?
Q5. Explain the difference between constructor and method?, and also
define the final keyword?
Q6. Explain the difference between method overloading and method
overriding?
Q7. Explain the use of super & this keyword in java?, define the main
method in java? And why is it static?
Q8. Define Strings in java and also explain why is string immutable in
java?
Q9. Define garbage collection and exception handling in java?
Q10. Explain the difference between abstract class and interface?, Can
we create objects of abstract class?