0% found this document useful (0 votes)
9 views

JAVA_Sample Practical Questions for LPW

Uploaded by

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

JAVA_Sample Practical Questions for LPW

Uploaded by

Agrita Anand
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

NATIONAL FORENSIC SCIENCES UNIVERSITY, Gandhinagar

B.Tech. - M.Tech. Computer Science Engineering (Cyber Security)

Semester: III Subject Code: CTBTCSE SIII P4


Course Title: JAVA PROGRAMMING Academic Year: 2024-25

Instructions:
1. Any two random Program assign.
2. Maximum 30 Min given to each student.
3. Viva questions expected based on complete syllabus.
4. Bring your own Laptop with working JAVA setup.

Sample Practical Questions

1) Write a Java program that displays the default name and priority of main thread. Change the
name to, My First Thread and priority to 3. Display the modified properties to the console.
2) Using threads, write a Java Program that implements a simple calculator. Create separate
threads that perform addition, subtraction, multiplication and division operations.
3) Write Program to create Object Array of Circle class which able to provide method for
Area calculation.
4) Demonstrate use of All Access Specifier in your java program to access different variables.
5) Create OnlineShoping Class which have two child class FlipKart and Amazon. WAP in
which Amazon object can access property of Onlineshoping Class.
6) WAP to use Constructor Overloading in Person Class.
7) WAP to use Method Overloading in Car Class.
8) WAP to use Method Overriding in Government Class.
9) WAP to demonstrate Exception handling in Fruit Class.
10) WAP to copy content of one file to another file.
11) WAP to demonstrate use of Button click event handling.
12) Create Interface with multiple abstract method and create implementation class for that
interface.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy