You are on page 1of 2

1.

Declare an object as Student class according to the UML diagram below:

Student
code: String
name: String
bYear: int
address: String
setCode: void
setName: void
setbYear: void
setAddress: void
getCode: String
getName: String
getbYear: int
getAddress: String
toString: String

- Input information of n student using Student class, print out the students
with bYear>2002.
14.Enter 2 integers and the math-operation between them. Catch the exception,
calculate and return the result of the operation.
15.Enter a person's date of birth. Catch the exception and print to the screen.

You might also like