RAJMATA JIJAU SHIKSHAN PRASARAK MANDAL’S
ARTS, COMMERCE AND SCIENCE COLLEGE
LANDEWADI, BHOSARI
[Link].(CS) - Sem I
Java Assignment II
1 Mark Questions
1. Write the purpose of static block.
2. State the use of wrapper classes.
3. "Import statement is not essential in Java". True/False? Justify.
4. What is JAR file?
5. State the use of toString() method.
6. Write down syntax for equals() method.
2 Marks Questions
1. Write any four package names in Java.
2 Explain the use of this keyword in java.
4 Marks Questions
L Explain different types of access specifiers used in package
2. What is package? How to create a package? Explain with example.
3. Explain inner class with an example.
4. Write a java program to create a package named student. Define class
studentInfo with method to display information about student such as rollno,
name, class and percentage. Create another class studentPer with method to find
percentage of the student. Accept student details like rollno, name, class and
marks of three subject from user.
5. How do we design, create and access a package in and in java? Discuss with
suitable example.