Mumbai University Solved Question Papers munotes.in
2018 19
BSc IT · Sem IV
Apr 2019 - CORE JAVA Examination
Previous Year Question Paper with Solution
munotes.in Mumbai
Mumbai University Solved Question Papers munotes.in
2018 19
BSc IT · Sem IV
Apr 2019 - CORE JAVA Examination
Previous Year Question Paper with Solution
munotes.in Mumbai
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 Apr 2019 - CORE JAVA examination.
The questions below are the paper as the University of Mumbai set it at the Apr 2019 - CORE JAVA examination, in the order it was set.
MarksPage
MarksPage
MarksPage
The questions in this volume are the questions asked at the Apr 2019 - 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.
Q.1
Attempt any three of the following · 15 Marks
Answer
For full marks, cover: what the JVM is and where it sits between the program and the machine, a labelled diagram, each component (class loader, runtime data areas, execution engine, native interface), the path of one method through them, and a conclusion.
The Java Virtual Machine is the program that runs Java bytecode. The compiler javac turns a .java file into a .class file of bytecode. Bytecode is not the instruction set of any real processor. The JVM loads it, checks it and executes it on the machine it is running on.
Each operating system has its own JVM, but every JVM accepts the same bytecode. That is why one .class file runs on Windows, Linux and macOS alike.
Marks.java --javac--> Marks.class (bytecode)
|
+---------------------------v---------------------------+
| 1. Class loader subsystem: load -> link -> initialise |
+-------------------------------------------------------+
| 2. Runtime data areas |
| method area | heap | Java stacks | PC registers |
| native method stacks |
+-------------------------------------------------------+
| 3. Execution engine: interpreter, JIT compiler, GC |
+-------------------------------------------------------+
| 4. Native method interface (JNI) -> native libraries |
+-------------------------------------------------------+
It brings classes into the JVM when they are first needed, in three steps:
.class file. The bootstrap loader loads the core classes such as java.lang.String. The platform loader loads other Java SE classes, and the application loader loads the program's own classes.| Area | Holds | Shared? |
|---|---|---|
| Method area | Each class's structure, its methods' code and the constant pool | Shared by all threads |
| Heap | Every object and array made with new | Shared by all threads |
| Area | Holds | Shared? |
|---|---|---|
| Java stack | One frame per method call: local variables and an operand stack | One per thread |
| PC register | The address of the bytecode instruction being run | One per thread |
| Native method stack | The calls into native (non-Java) code | One per thread |
The Java Native Interface (JNI) lets Java code call functions written in C or C++, kept in native method libraries.
public class Marks {
static int total(int theory, int practical) {
return theory + practical;
}
public static void main(String[] args) {
System.out.println("total(48, 27) = " + total(48, 27));
}
}
Output:
total(48, 27) = 75
The command javap -c Marks shows the bytecode that javac wrote for total():
static int total(int, int);
Code:
0: iload_0
1: iload_1
2: iadd
3: ireturn
The class loader loaded Marks. When total(48, 27) was called, a new frame was pushed on the thread's stack. It held theory = 48 and practical = 27 as local variables 0 and 1. The execution engine pushed both onto the operand stack (iload_0, iload_1), added them (iadd) and returned 75 (ireturn).
Conclusion. The JVM runs bytecode, so the same class file runs on any system that has a JVM. Its parts are the class loader, the runtime data areas, the execution engine with its interpreter, JIT compiler and garbage collector, and the native interface.
The rest of the answers
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.
What do you need?
Tap one.
The answers are on this page
You can read the first answer here. The box further down shows how to read all of them.
Read it here, any time
We keep checking and updating our papers and notes, and adding more. A saved copy would be an old version. Reading on munotes.in always gives you the latest one.
I paid, but I can't open it
Please type an email, or a 10-digit phone number.
Done
If we find your payment, we send a link to the email you paid with. Open it to read.
Check your email in 2 minutes. Also check Spam.
No email after 10 minutes?
Something else
Please write a little more, so we can help.
Your email app opens with this. You can add more there. We reply by email.
Found an error in this volume? Report it and we will check it against the paper.