ASANSOL INSTITUTE OF ENGINEERING AND MANAGEMENT - POLYTECHNIC
LEADING TOWARDS A BRIGHT FUTURE
APPROVED BY AICTE || AFFILIATED TO WBSCT & VE & SD

(+91)8001500263

Mon-Fri: 10am to 5pm & Sat:10am to 2pm

Computer Science and Technology Engineering

Object Oriented Programming Lab using Java



  1. INSTALL jdk, write a simple "Hello World" or similar java program, compilation, debugging, executing using java compiler and interpreter.
  2. Write a program in Java to generate first n prime numbers.
  3. Write a program in Java to find maximum of three numbers using conditional operator
  4. Write a program in Java to find second maximum of n numbers without using arrays
  5. Write a program in Java to reverse the digits of a number using while loop
  6. Write a program in Java to convert number into words & print it
  7. Write programs in Java to use Wrapper class of each primitive data types
  8. Write a program in Java to multiply two matrix.
  9. Write a static block which will be executed before main( ) method in a class.
  10. Write a program in Java to demonstrate use of this keyword. Check whether this can access the private members of the class or not.
  11. Write a program in Java to develop overloaded constructor. Alsodevelop the copy constructor to create a new object with the state of the existing object.
  12. Write a program in Java to demonstrate the use of private constructorand also write a method which will count the number of instances created using default constructor only.
  13. Write a program in Java to demonstrate the use of 'final' keyword in the field declaration. How it is accessed using the objects.
  14. Develop minimum 4 program based on variation in methods i.e. passing by value, passing by reference, returning values and returning objects from methods.
  15. Write a program in Java to demonstrate single inheritance, multilevel inheritance and hierarchical inheritance.
  16. Create a class to find out whether the given year is leap year or not. (Use inheritance for this program)
  17. Write an application that illustrates how to access a hidden variable. Class A declares a static variable x. The class B extends A and declaresan instance variable x. display( ) method in B displays both of these variables.
  18. Write a program in Java in which a subclass constructor invokes the constructor of the super class and instantiate the values.
  19. Write a program that illustrates interface inheritance. Interface P12 inherits from both P1 and P2. Each interface declares one constant and one method. The class Q implements P12. Instantiate Q and invoke each of its methods. Each method displays one of the constants.
  20. Write an application that illustrates method overriding in the same package and different packages. Also demonstrate accessibility rules in inside and outside packages.
  21. Describe abstract class called Shape which has three subclasses say Triangle, Rectangle, Circle. Define one method area()in the abstract class and override this area() in these three subclasses to calculate for specific object i.e. area() of Triangle subclass should calculate area of triangle etc. Same for Rectangle and Circle
  22. Write a program in Java to demonstrate implementation of multiple inheritance using interfaces.
  23. Write a program in Java to demonstrate use of final class.
  24. Write a program in Java to develop user defined exception for 'Divide by Zero' error.
  25. Write a program in Java to demonstrate multiple try block and multiple catch exception
  26. Write an small application in Java to develop Banking Application in which user deposits the amount Rs 1000.00 and then start withdrawingof Rs 400.00, Rs 300.00 and it throws exception "Not Sufficient Fund" when user withdraws Rs. 500 thereafter.
  27. Write a program that executes two threads. One thread displays every 2,000 milliseconds and the other display Thread2 every 4,000 milliseconds. Create the threads by extending the Thread class
  28. Write a program that executes two threads. One thread will print the even numbers and the another thread will print odd numbers from 1 to50.
  29. Write a program in Java to demonstrate use of synchronization of threads when multiple threads are trying to update common variable.
  30. Write a program in Java to create, write, modify, read operations on a Text file.
back
ADMISSION OPEN FOR WORKING PROFESSIONAL IN THE DEPARTMENT OF MINING ENGINEERING, ELECTRICAL ENGINEERING AND COMPUTER SCIENCE & TECHNOLOGY. Contact no:- 8001500263

Contact Us

Location:

Bagbandi Road, Near Radhyaswami Satsang, Kalipahari More
City: Asansol
District : Paschim Bardhaman
State : West Bengal
Pin Code: 713339

Fax:

0341-6610 310

Email:

infoaiem2015@gmail.com

Call:

(+91) 8001500263 (For Admissions)

Landline No.: 0341 6610 300/305

Loading
Your message has been sent. Thank you!