munotes®

BSc IT Sem IV ATKT CORE JAVA Question Paper with Solutions

MU B.Sc. (Information Technology) student group Free to join

Mumbai University Solved Question Papers munotes.in

ATKT

BSc IT · Sem IV

CORE JAVA Examination

Previous Year Question Paper with Solution

munotes.in Mumbai

munotes.in

First published on munotes.in on 12 November 2026.

Published by munotes.in, Mumbai.

Model answers written and edited by the munotes.in editorial desk.

Passages from this volume may be quoted, in print, online or by an AI system, with credit: name munotes.in and link to this volume's page. The volume may not be reproduced as a whole. Full terms at munotes.in/content-license.

munotes.in is an independent study resource for students of the University of Mumbai. It is not affiliated with the University of Mumbai, and is not endorsed by it.

The University does not publish an official answer key for this paper. The answers in this volume are model answers, written to show how a full-mark answer is built. They are a study aid, not an authority on what an examiner marked.

The question paper reproduced here is the paper as set by the University of Mumbai at the CORE JAVA examination.

munotes.in ii
munotes.in iii
munotes.in iv
munotes.in v

The Paper as Set

The questions in this volume are the questions asked at the CORE JAVA examination, reproduced as the University of Mumbai set them, in the order it set them. Nothing has been reworded, added or left out. Only the answers are ours. See the original question paper.

Duration 2½ hours  ·  Total marks 75  ·  30 questions answered

How to use this volume

Solve the paper first, under exam conditions and against the clock. Then read the answers here and mark your own. Reading a solution before attempting the question feels productive and teaches very little, because recognising an answer is not the same as being able to write one.

munotes.in vi

SECTION I

Q.1

Attempt any three of the following · 15 Marks

munotes.in 1

a.Write a note on: i) Autoboxing and unboxing ii) Java Development Kit(JDK).[5]

Answer

For full marks, cover: wrapper classes, autoboxing and unboxing with an example, where Java does them for you, two traps, then what the JDK is, its main tools, and how it relates to the JRE and the JVM.

i) Autoboxing and unboxing

Java has eight primitive types such as int, double and char. Each has a wrapper class in java.lang that holds the same value as an object: Integer, Double, Character, Boolean, Byte, Short, Long and Float.

Autoboxing is the automatic change of a primitive into its wrapper object. Unboxing is the reverse, from the wrapper back to the primitive. The compiler inserts the calls Integer.valueOf(n) and n.intValue() for you. Both were added in Java 5.

Java boxes and unboxes in three common places:

  1. Assignment, as in Integer boxed = 72; and int back = boxed;.
munotes.in 2
  1. Collections, which hold only objects, so list.add(81) boxes 81.
  2. Arithmetic, where list.get(0) + list.get(1) unboxes both values before adding.

import java.util.ArrayList;

public class BoxingDemo {

public static void main(String[] args) {

int marks = 72;

Integer boxed = marks;

int back = boxed;

System.out.println("boxed = " + boxed + ", back = " + back);

ArrayList<Integer> list = new ArrayList<>();

list.add(81);

list.add(66);

int total = list.get(0) + list.get(1);

System.out.println("total = " + total);

Integer a = 127, b = 127;

Integer c = 128, d = 128;

munotes.in 3

System.out.println("127 == 127: " + (a == b));

System.out.println("128 == 128: " + (c == d));

System.out.println("128 equals 128: " + c.equals(d));

}

}

Output:

boxed = 72, back = 72

total = 147

127 == 127: true

128 == 128: false

128 equals 128: true

81 + 66 = 147. The last three lines show the first trap. Integer.valueOf reuses one cached object for each value from -128 to 127, so == finds the same object for 127. For 128 it makes two objects, so == is false. Compare wrapper values with equals(). The second trap: unboxing a null Integer throws a NullPointerException.

munotes.in 4

ii) Java Development Kit (JDK)

The JDK is the software a programmer installs to write, compile and run Java programs. It holds the development tools and a runtime environment.

ToolWhat it does
javacCompiles a .java source file into .class bytecode
javaStarts the JVM and runs a class
javadocMakes HTML documentation from /** */ comments
jarPacks many class files into one .jar file
jdbThe command-line debugger
jshellRuns Java statements one at a time (from Java 9)

The JRE (Java Runtime Environment) is a JVM plus the class library, enough to run a compiled program. The JVM is the machine that executes the bytecode. So the JDK contains a JRE, and the JRE contains a JVM.

munotes.in 5

Conclusion. Autoboxing turns a primitive into its wrapper object and unboxing turns it back, done by the compiler in assignments, collections and arithmetic. The JDK is the developer's kit: javac, java, javadoc, jar, jdb and jshell, plus the runtime that runs the result.

munotes.in 6

The rest of the answers

The first answer is free. The rest come with the B.Sc. (Information Technology) Semester 4 solved papers.

You have read the question paper and its first answer in full. Buy the solved papers once and you can read every answer of every solved paper in this semester.

Notes + practical solutions + solved papers: ₹798 Already bought it? Sign in

Or solved papers only: ₹499
Or notes + practical solutions: ₹499

The question paper itself stays free, and so does the syllabus.

Issue

Found an error in this volume? Report it and we will check it against the paper.

Done!