Core Java Assignment Questions
1. Write a program to perform arithmetic operations (+, -, *, /, %) on two numbers entered by the user.
2. Write a Java program to find whether a given number is even or odd using the if statement.
3. Write a program to find the largest among three numbers using nested if-else.
4. Write a Java program to create a simple calculator using the switch statement.
5. Write a program to print the multiplication table of a number using a for loop.
6. Write a Java program to find the factorial of a number using loops.
8. Write a Java program to store 10 integers in an array and find the largest and smallest element.
9. Write a program to sort an array in ascending order.
10. Write a Java program to count vowels, consonants, digits, and special characters in a string.
11. Write a program demonstrating various String methods (length(), substring(), replace(),
toUpperCase(), etc.).
12. Write a Java program using StringBuffer to append, insert, and delete characters.
13. Create a class Student with data members and methods to display student details.
14. Write a Java program to demonstrate single inheritance using Employee and Manager classes.
15. Write a Java program to demonstrate method overriding.