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

Java Programming Assignment Guide

This document provides an assignment for a Java programming course. It includes 6 questions on topics like wrapper classes, packages, inheritance, and overriding toString methods. Students are asked to write code for a question that creates Employee, Manager, and Executive classes with inheritance and overriding methods. The assignment is due within 3 days and is worth a maximum of 6 marks.

Uploaded by

Suchita Arora
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)
11 views1 page

Java Programming Assignment Guide

This document provides an assignment for a Java programming course. It includes 6 questions on topics like wrapper classes, packages, inheritance, and overriding toString methods. Students are asked to write code for a question that creates Employee, Manager, and Executive classes with inheritance and overriding methods. The assignment is due within 3 days and is worth a maximum of 6 marks.

Uploaded by

Suchita Arora
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

POORNIMA UNIVERSITY, JAIPUR.

ASSIGNMENT I

School : School of Computer Science & Engineering (SCE)


Program with Year, : [Link]. CC, II Year, IV Sem
Sem
Course Code : BCC04102 Course : Programming in java
Name
Faculty Name : Suchita Arora
Max. Time: 3 Days. Max. Marks: 6

Max.
AQ no. Assignment Question
Marks
AQ1] What do we mean by Wrapper classes? Explain with an example. 1

AQ2] What are Packages? How are they created and used? Name the default 1
package in java.

AQ3] Differentiate between this and super keywords. 1

AQ4] What is path and class path environment variable? How do we set it? 1

AQ5] Difference between array and Arraylist. 1

AQ6] Make a class Employee with a name and salary. Make a class Manager 1
inherit from Employee. Add an instance variable, named department, of type
String. Supply a method toString that prints the manager’s name, department,
and salary. Make a class Executive inherit from Manager. Supply appropriate
toString methods for all classes. Supply a test program that tests these
classes and methods.

Page 1 of 1

You might also like