0% found this document useful (0 votes)
3 views1 page

Core Java Assignment Questions

The document contains a list of core Java assignment questions designed to test various programming skills. Topics include arithmetic operations, control statements, array manipulation, string methods, and object-oriented programming concepts. Each question requires the implementation of specific Java programs to solve different problems.

Uploaded by

ramlakhanm578
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views1 page

Core Java Assignment Questions

The document contains a list of core Java assignment questions designed to test various programming skills. Topics include arithmetic operations, control statements, array manipulation, string methods, and object-oriented programming concepts. Each question requires the implementation of specific Java programs to solve different problems.

Uploaded by

ramlakhanm578
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

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.

You might also like