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

Object Oriented Programming Through Java Lab

Uploaded by

jmadhavi2214
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)
12 views1 page

Object Oriented Programming Through Java Lab

Uploaded by

jmadhavi2214
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

1. Use Eclipse or Net bean platform and acquaint yourself with the various menus.

Create a test project, add a test class, and run it. See how you can use auto
suggestions, auto fill. Try code formatter and code refactoring like renaming
variables, methods, and classes. Try debug step by step with a small program of
about 10 to 15 lines which contains at least one if else condition and a for loop.
2. Write a Java program that converts a numeric string to an integer and prints the
result.
3. Write a program to demonstrate to create a Simple Calculator using else if
4. Write a program to check whether a number is even or odd using the ternary
operator.
5. Write a program to demonstrate to find Arithmetic Sum using Method
Overloading.
6. Write program to Swap two numbers using temporary variable
7. Write a program to demonstrate i) hierarchical inheritance ii) multiple inheritance
using interface.
8. Write a program to Check whether a number is even or odd using if...else
statement
9. Write a program to demonstrate switch statement.
10. Write a program to demonstrate to create a Simple Calculator using else if
11. Write a program to demonstrate constructor overloading.
12. Write a Java program that declares an integer variable, assigns it an initial value,
displays it, then updates the value of the variable and displays the updated value.
13. Write a program to demonstrate i) single inheritance ii) multilevel inheritance.
14. Write a simple program for Reading Different Variable Types from User.
15. Write a program to demonstrate Method overloading i) changing the number of
parameters, ii) changing datatype of parameters
16. write a simple program for declaring variables

You might also like