Java Programming Manual (314317) | Solved Manual | Manual Answers

---------------×------------------××--------------------×---------------

Java Programming Image

---------------×------------------××--------------------×---------------

Java Programming (314317)

---------------×------------------××--------------------×---------------
---------------×------------------××--------------------×---------------

Java Practicals

  • Practical No. 1 
Setup Java Programming development environment using: Command prompt. 
(Classpath and path setup), Any IDE (Eclipse, Netbeans, VScode, Jcreator etc.). 

  • Practical No. 2
Write programs to evaluate different types of expressions

  • Practical No. 3
Write programs to demonstrate use of: if statements (all forms of if statement Switch – Case statement Different types of Loops(for, while and do ..while )

  • Practical No. 4
Write programs for implementation of different methods of - String class, StringBuffer class.

  • Practical No. 5
Write programs to demonstrate: Use of Array. Use of Vectors.

  • Practical No. 6 
Write programs using Wrapper Class: to convert primitive into object, to convert object into primitive. 
 
  •  Practical No. 7
Develop a program for implementation of different types of constructors.      
 
  • Practical No. 8
Develop program to implement:  Single inheritance, Multilevel inheritance. 

  • Practical No. 9
Develop program for implementation of interface. 

  • Practical No. 10
Write programs to demonstrate use of: Built in packages , User defined packages.

  • Practical No. 11
Write programs using multithreading.

  • Practical No. 12
Write programs for implementation of try, catch and finally block.

  • Practical No. 13
Write programs for implementation of throw, throws clause.

  • Practical No. 14
Write program to design any type of form using AWT components.

  • Practical No. 15
Write program to create a menu bar with various menu items and sub menu items.

  • Practical No. 16
Write program to demonstrate the use of border layout. The layout shows four buttons at four sides with captions “left”, “right”, “top” and “bottom” using Swing Components.

  • Practical No. 17
Write program to design a calculator to demonstrate the use of grid layout using swing components 

  • Practical No. 18
Write program using swing to display a JComboBox in a JFrame. 

  • Practical No. 19
Write program to create JTree and JTable.

  • Practical No. 20
 Write program to handle key events and mouse events. 

  • Practical No. 21
Write program to implement action event in frame using swing components.

  • Practical No. 22
Write program to handle text event on swing components. 

  • Practical No. 23
Write program to retrieve hostname and IP address using InetAddress class. 

  • Practical No. 24
Write program to demonstrate various methods of:  URL class, URLConnection.

  • Practical No. 25
Write program that demonstrates connection oriented communication using socket. 

  • Practical No. 26
Write program to demonstrate sending and receiving data through datagram.

  • Practical No. 27
Write program to: Create sample database, Make connectivity with database. 

  • Practical No. 28
Write program to implement following operations on database: Insert record, Update record, Delete record. 

  • Practical No. 29
Write program to demonstrate the use of PreparedStatement. 

  • Practical No. 30
Write program to retrieve data from table using ResultSet interface.(Use various methods of navigation methods).

---------------×------------------××--------------------×---------------
---------------×------------------××--------------------×---------------

Manual Answers

---------------×------------------××--------------------×---------------
---------------×------------------××--------------------×---------------

Practical No. 1 

Setup Java Programming development environment using: Command prompt. 
(Classpath and path setup), Any IDE (Eclipse, Netbeans, VScode, Jcreator etc.). 

>Practical Related Questions

1. Write installation directory path of your directory? 
2. Write value of path environment variable? 
3. List folders created after installation. 
4. Main Method is declared as static. Justify 
5. Program is named with class containing main method. justfy. 
6. Write the options provided by following JDK tools along with their use  
1.Java   2.javac  3.javadoc 
7. List different versions of JDK 
8. Test the setup using similar programs 

Click Below 🖇️ to Download 


---------------×------------------××--------------------×---------------
---------------×------------------××--------------------×---------------

Practical No. 2

Write programs to evaluate different types of expressions

>Practical Related Questions

2. What is the arithmetic operator precedence in Java? 
3. What are the comparative operators in Java? 
4. What are expressions in programming? 
5. What are unary and binary operators?

Click Below 🖇️ to Download 


---------------×------------------××--------------------×---------------
---------------×------------------××--------------------×---------------

Practical No. 3

Write programs to demonstrate use of: if statements (all forms of if statement Switch – Case statement Different types of Loops(for, while and do ..while )

>Practical Related Questions

1. Write a program to check multiple conditions using if statement along with logical operators. 
2. Write a program to check no is even or odd. 
3. Write a program to check switch-case using character datatype. 
4. Write a program to display 1 to 20 numbers using for, while and do-while loop. 
5. Develop a program to use logical operators in do-while loop. 

Click Below 🖇️ to Download 


---------------×------------------××--------------------×---------------
---------------×------------------××--------------------×---------------

Practical No. 4

Write programs for implementation of different methods of - String class, StringBuffer class.

>Practical Related Questions

1. Write a program to show the use of all methods of String class.
2. Write a program to implement all methods of StringBuffer class.
3. List different constructors of StringBuffer class along with syntax
4. What is difference between = = ,equals() & compareTo()?

Click Below 🖇️ to Download 


---------------×------------------××--------------------×---------------
---------------×------------------××--------------------×---------------

Practical No. 5

Write programs to demonstrate: Use of Array. Use of Vectors.

>Practical Related Questions

1. Write a program to implement multidimensional array.
2. Write a program to display array elements using for-each loop.
3. Write a program to insert different elements in the Vector & display them
4. What is the use of new operator in defining an array?
5. Write a program to use different methods of Vector class.

Click below 🖇️ to Download 


---------------×------------------××--------------------×---------------
---------------×------------------××--------------------×---------------

Practical No. 6

Write programs using Wrapper Class: to convert primitive into object. to convert object into primitive.

>Practical Related Questions

1. Write a program to show the use of Integer Wrapper class methods. 
2. Write a different way to create object of the any primitive datatype. 
3. Write methods of Number class to convert object into primitive datatypes. 
4. Write a program to convert String value into Integer class object. 
5. Write a program to make use of Character Wrapper class Methods. 
6. Write a program to convert Integer object value into primitive datatype byte, short and double value 

Click below 🖇️ to Download 


---------------×------------------××--------------------×---------------
---------------×------------------××--------------------×---------------

Practical No. 7

Develop a program for implementation of different types of constructors.

 >Practical Related Questions

1. Demonstrate use of at least two types of constructors. 
2. How constructor overloading can be done? 
3. Specify the situation when the default constructor is provided by the system. 
4. What is the use of constructor in java? 
5. Write a program to implement different types of constructors to perform addition of complex numbers?

Click below 🖇️ to Download 


---------------×------------------××--------------------×---------------
---------------×------------------××--------------------×---------------

Practical No. 8

Develop program to implement: Single inheritance, Multilevel inheritance.

>Practical Related Questions

1. Write a program to implement single inheritance. 
2. Write a program to implement multilevel inheritance. 
3. Develop a program to implement the multilevel inheritance. 
4. Develop a program to calculate he room area and volume to illustrate the concept of single inheritance. 

Click below 🖇️ to Download 


---------------×------------------××--------------------×---------------
---------------×------------------××--------------------×---------------

Practical No. 9

Develop program for implementation of interface

>Practical Related Questions

1. Demonstrate the use of interfaces to implement the concept of multiple inheritance.( Attach the code at the end). 
2. Differentiate between class and interface. 
3. Write similarities between interfaces and classes. 
4. Write advantages of interfaces. 
5. Develop a program to find area of rectangle and circle using interfaces. 

Click below 🖇️ to Download 


---------------×------------------××--------------------×---------------
---------------×------------------××--------------------×---------------

Practical No. 10

Write programs to demonstrate use of - Built in packages and User defined packages

>Practical Related Questions

1. Write a program to implement user defined packages in terms of creating a new package and importing the same. 
2. Define a package named myInstitute include class named as department with one method to display the staff of that department. Develop a program to import this package in a java application and call the method defined in the package. 
3. Develop a program which consists of the package named let_me_calculate with a class named Calculator and a method named add to add two integer numbers. Import let_me_calculate package in another program (class named Demo) to add two numbers. 

Click below 🖇️ to Download 


---------------×------------------××--------------------×---------------
---------------×------------------××--------------------×---------------

Practical No. 11

Write programs using multithreading

>Practical Related Questions

1. Develop a simple real-life application program to illustrate the use of multithreads. 
2. Explain the use of keyword synchronized. 
3. Differentiate between notify() and notifyAll()? 
4. Implement multithreading to perform simultaneous processes. 
5. Create three threads and run these threads according to setPriority. 

Click below 🖇️ to Download 


---------------×------------------××--------------------×---------------
---------------×------------------××--------------------×---------------

Practical No. 12

Write programs for implementation of try, catch and finally block

>Practical Related Questions

1. Demonstrate exception handling using try , catch and finally block. 
2. Differentiate between error and exception in java. 
3. Can we throw exception manually? Illustrate with sample program \ 
4. Develop a program to accept a password from the user and throw “Authentication Failure”   Exception if the password is incorrect. 
5. How exception is thrown by main method? 

Click below 🖇️ to Download 


---------------×------------------××--------------------×---------------
---------------×------------------××--------------------×---------------

Practical No. 13

Write programs for implementation of throw, throws clause 

>Practical Related Questions

1. Demonstrate use of throw and throws clause. 
2. State the situation where throws clause is used. 
3. Write the simple program for throwing our own exceptions. 
4. Define an exception called “NotMatchExceptons” that is thrown when a string is not equals to “India”. Write a program that uses this exceptions. 

Click below 🖇️ to Download 


---------------×------------------××--------------------×---------------
---------------×------------------××--------------------×---------------

Practical No. 14

Write program to design any type of form using AWT

>Practical Related Questions

1. Design an applet/application to demonstrate the use of Radio Button and Checkbox. 
2. Design an applet/application to create form using Text Filed, Text Area, Button and Label 
3. Write a program to create three Buttons with Caption OK RESET and CANCEL 
4. Develop an applet/application using List components to add names of 10 different cities. 
5. Develop applet/application to select multiple names of news papers. 

Click below 🖇️ to Download 


---------------×------------------××--------------------×---------------
---------------×------------------××--------------------×---------------

Practical No. 17

Write program to design a calculator to demonstrate the use of grid layout using swing components.

>Practical Related Questions



Click below 🖇️ to Download 


---------------×------------------××--------------------×---------------
---------------×------------------××--------------------×---------------

Practical No. 20

Write program to handle key events and mouse events.

>Practical Related Questions

1. State the situation when all three events of KeyListener interface are generated? 
2. List various methods of MouseListener and MouseMotionListener. 
3. Write a program to generate KeyEvent when a key is pressed and display “Key Pressed” message 
4. Write a program to demonstrate the use of mouseDragged and mouseMoved method of MouseMotionListener 

Click below 🖇️ to Download 


---------------×------------------××--------------------×---------------
---------------×------------------××--------------------×---------------

Practical No. 24

Write program to demonstrate various methods of: URL class and URLConnection.

>Practical Related Questions

1. Write the use of openConnection() method of URLConnection class. 
2. Write the name of exception that can be thrown by URL class 
3. Name the package in which URL class is defined. 
4. Write a program using URL class to retrieve the host, protocol, port and file of URL 
http://www.msbte.org.in 

Click below 🖇️ to Download 


---------------×------------------××--------------------×---------------
---------------×------------------××--------------------×---------------

---------------×------------------××--------------------×---------------
---------------×------------------××--------------------×---------------



---------------×------------------××--------------------×---------------
---------------×------------------××--------------------×---------------





Post a Comment

0 Comments