JAVA Programming — DU B.Sc. (Hons) Computer Science Previous Year Question Papers

Programme
B.Sc. (Hons) Computer Science
Paper type
GE
Paper code
2344002002
Exam years
2024–2025

JAVA Programming is a GE paper in Semester III of B.Sc. (Hons) Computer Science at Delhi University (paper code 2344002002). 2 previous year question papers from 2024–2025 are listed below; view or download each original PDF.

Share with your class: WhatsApp Telegram

2025 question papers

2025

B.Sc. (Hons) Computer Science

2344002002

2024 question papers

2024

B.Sc. (Hons) Computer Science

2344002002

What was asked in the 2025 JAVA Programming paper?

Text of the may june 2025 DU question paper (UPC 2344002002), so you can see what gets asked before opening a PDF.

(ii) to string() method (iii) Equals() method 6. (a) Write a Java program to display all the numbers from 1 to n that are divisible by 3 (5) (b) Locks and conditions are powerful tools for thread synchronization, but they are not 5 very object-oriented. Explain how does monitor Concept make multithreading safe witho.ut forcing programmers to think about explicit locks. (5) (c) Why is Java called as strongly typed language? 7. Write short note on any three (i) Filename Filter (ii) Conditional Operator (iii) Thread Properties (iv) Lambda Expressions 2. The paper has two sections. 5. Parts of a question must be answered together. 1. (i) Why is Java considered a platform-independent programming language? (4) (ii) Identify the valid and invalid literals among the following. Justify your answer: (d) long nun = = 1234567890L; (iii)Give output for the following print statements: (a) System.out.print(("S.mile\t" + "World\n"). repeat (4)); (b) System.out.println(3 + 5 * (int) riath.pow(2, 3) -4),. (b) Define the following (Any five): (i) Inner Class and Outer Class (ii) Boxing and unboxing (iii) Double Brace initialization (iv) Anonymous Inner Classes (v) Static Inner .Class (vi) Abstract Class 5. (a) Can the wrapper classes can be used to implement methods that can modify numeric parameters? Why? Why not? (5) (b) Write a Java program to reverse a string entered by the user and checks whether the string is a palindrome or not. (5) (c) Explain the following methods: (i) hashcode() method (b) Identify and rectify the error alongwith brief explanation : (5 ) var list = new ArrayList (100); / / capac,ity 100, size 0 list.set(0, x),. // no element 0 yet (c) .Explain the lifecycle of a thread in Java with appro.priate method names and transitions and a diagram. (5) 4. (a) Write a Java program to calculate the factorial of a number using a loop. (5) .System.out.println (a > 3 && b (d) System.out.println (5 I 2^ 3) (iv)Explain the four access control modifiers in Java. (4) utny (v) What is the difference between if-else and switch hr, statements in Java? (4) i (vi)To handle exceptional situations in your program, a Java programmer must take into account the errors and problems that may occur. Identify four types of problems that are required to be handled. (vii) What is the purpose of the try and catch blocks in exception handling? Give suitable examples. (viii) How a directory in Java is different from file? 2. (a) Write any five file methods that are used in file handling in Java. (5) (b) Write output for the following code snippets: (i) String greeting = "Hello"; Strings = greeting.substring (0, System.out.println(s); (ii) String a = "Java"; String b= new String ("Java"); System.out.println (a b); System.out.println la.equals (iv) String x = "Good"; String y = "Morning"; String z = "GoodMorning"; System.out.println(z==w); (V) String s = "Java Programming"; System.out.println(s.substring system.out.printin/s.length());

How can I prepare for JAVA Programming?

Related subjects in B.Sc. (Hons) Computer Science

Frequently asked questions

Where can I download the DU JAVA Programming previous year question paper PDF?
This page lists 2 JAVA Programming question papers for B.Sc. (Hons) Computer Science at Delhi University (2024–2025). Open any paper to view the original PDF or download it. It is free and needs no login.
Which years of JAVA Programming question papers are available?
JAVA Programming papers are available for 2025, 2024.
What is the paper code (UPC) of JAVA Programming?
The Unique Paper Code for JAVA Programming in B.Sc. (Hons) Computer Science is 2344002002.
Which semester is JAVA Programming taught in?
JAVA Programming is a GE paper in Semester III of B.Sc. (Hons) Computer Science, according to DU's published scheme.

← All B.Sc. (Hons) Computer Science subjects