Syllabus

JNTUH B.Tech 2016-2017 (R16) Detailed Syllabus Object Oriented Programming through Java Lab

Object Oriented Programming through Java Lab Detailed Syllabus for B.Tech second year first sem is covered here. This gives the details about credits, number of hours and other details along with reference books for the course.

The detailed syllabus for Object Oriented Programming through Java Lab B.Tech 2016-2017 (R16)  second year first sem is as follows.

B.Tech. II Year I Sem.    L/T/P/C
Course Code: CS308ES 0/0/3/2

Course Objectives:

  • To write programs using abstract classes.
  • To write programs for solving real world problems using java collection frame work.
  • To write multithreaded programs.
  • To write GUI programs using swing controls in Java.
  • To introduce java compiler and eclipse platform.
  • To impart hands on experience with java programming.

Course Outcomes:

  • Able to write programs for solving real world problems using java collection framework.
  • Able to write programs using abstract classes.
  • Able to write multithreaded programs.
  • Able to write GUI programs using swing controls in Java.

Note:

  • Use Linux and MySQL for the Lab Experiments. Though not mandatory, encourage the use of Eclipse platform.
  • The list suggests the minimum program set. Hence, the concerned staff is requested to add more problems to the list as needed.
  1. Use Eclipse or Net bean platform and acquaint 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 works as a simple calculator. Use a grid layout to arrange buttons for the digits and for the +, -,*, % operations. Add a text field to display the result. Handle any possible exceptions like divided by zero.
  3. A) Develop an applet in Java that displays a simple message.
    b) Develop an applet in Java that receives an integer in one text field, and computes
    its factorial Value and returns it in another text field, when the button named “Compute” is clicked.
  4. Write a Java program that creates a user interface to perform integer divisions. The user enters two numbers in the text fields, Num1 and Num2. The division of Num1 and Num 2 is displayed in the Result field when the Divide button is clicked. If Num1 or Num2 were not an integer, the program would throw a Number Format Exception. If Num2 were Zero, the program would throw an Arithmetic Exception. Display the exception in a message dialog box.
  5. Write a Java program that implements a multi-thread application that has three threads. First thread generates random integer every 1 second and if the value is even, second thread computes the square of the number and prints. If the value is odd, the third thread will print the value of cube of the number.
  6. Write a Java program for the following:
    i) Create a doubly linked list of elements.
    ii) Delete a given element from the above list.
    iii) Display the contents of the list after deletion.
  7. Write a Java program that simulates a traffic light. The program lets the user select one of three lights: red, yellow, or green with radio buttons. On selecting a button, an appropriate message with “Stop” or “Ready” or “Go” should appear above the buttons in selected color. Initially, there is no message shown.
  8. Write a Java program to create an abstract class named Shape that contains two integers and an empty method named print Area (). Provide three classes named Rectangle, Triangle, and Circle such that each one of the classes extends the class Shape. Each one of the classes contains only the method print Area () that prints the area of the given shape.
  9. Suppose that a table named Table.txt is stored in a text file. The first line in the file is the header, and the remaining lines correspond to rows in the table. The elements are separated by commas. Write a java program to display the table using Labels in Grid Layout.
  10. Write a Java program that handles all mouse events and shows the event name at the center of the window when a mouse event is fired (Use Adapter classes).

Download iStudy Android App for complete JNTUH syllabus, results, timetables and all other updates. There are no ads and no pdfs and will make your life way easier.

REFERENCE BOOKS

  • Java for Programmers, P. J. Deitel and H. M. Deitel, 10th Edition Pearson education.
  • Thinking in Java, Bruce Eckel, Pearson Education.
  • Java Programming, D. S. Malik and P. S. Nair, Cengage Learning.
  • Core Java, Volume 1, 9th edition, Cay S. Horstmann and G Cornell, Pearson.

For all other B.Tech 2nd Year 1st Sem syllabus go to JNTUH B.Tech Information Technology 2nd Year 1st Sem Course Structure for (R16) Batch.

All details and yearly new syllabus will be updated here time to time. Subscribe, like us on facebook and follow us on google plus for all updates.

Do share with friends and in case of questions please feel free drop a comment.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

This site uses Akismet to reduce spam. Learn how your comment data is processed.