Roll No. :
Total Pages : 4
6696
Time : Two Hours
[Maximum Marks : 75]
Note: This paper is divided into three sections A, B and C carrying 9, 36 and 30 marks respectively. Answer in serial order.
Unit IUnit II
Unit IIIUnit IV
Section — A
(खण्ड — अ)
Very Short Answer Type Questions
(अति लघु उत्तरीय प्रश्न)
Note: Q.1 has five sub-questions, each carrying 3 marks. Attempt any three in about 50 words each. [3×3=9]
1.
(a) Explain the Java Virtual Machine (JVM). How does JVM achieve platform independence?
Java Virtual Machine (JVM) को समझाइए। JVM platform independence कैसे achieve करता है?
(b) What is the Character class in Java? Name five methods and their uses.
Java में Character class क्या है? इसके पाँच methods और उनके उपयोग बताइए।
(c) What is the difference between abstract method and final method in Java?
Java में abstract method और final method में क्या अंतर है?
(d) What is Event Delegation Model in Java? How does it work?
Java में Event Delegation Model क्या है? यह कैसे कार्य करता है?
(e) What is the difference between sleep() and wait() in Java Multithreading?
Java Multithreading में sleep() और wait() में क्या अंतर है?
Section — B
(खण्ड — ब)
Short Answer Type Questions
(लघु उत्तरीय प्रश्न)
Note: Q.2 has seven sub-questions, each carrying 9 marks. Attempt any four in about 225 words each. [4×9=36]
2.
(a) Explain Arrays in Java: single-dimensional and multi-dimensional arrays. Write programs to: (i) sort an array using Bubble Sort, and (ii) search an element using Binary Search.
Java में Arrays समझाइए। (i) Bubble Sort से array sort करने का, और (ii) Binary Search से element खोजने का program लिखिए।
(b) Describe the Visibility Modifiers (access specifiers) in Java: public, protected, default, and private. Explain with a table and a Java program showing their scope.
Java में Visibility Modifiers (public, protected, default, private) का वर्णन कीजिए। Table और Java program से इनका scope दर्शाइए।
(c) Explain Generic Programming in Java. Write generic stack and generic pair classes. How do bounded type parameters work?
Java में Generic Programming समझाइए। Generic stack और generic pair classes लिखिए। Bounded type parameters कैसे काम करते हैं?
(d) Explain Lists, ComboBoxes, and Scroll Bars in Java GUI. Write a program to create a student registration form using these components with BorderLayout.
Java GUI में Lists, ComboBoxes और Scroll Bars समझाइए। BorderLayout के साथ student registration form बनाने का program लिखिए।
(e) What is Random Access File in Java? Explain RandomAccessFile class with its methods. Write a program to read and write records randomly in a file.
Java में Random Access File क्या है? RandomAccessFile class को methods सहित समझाइए। File में records randomly read-write करने का program लिखिए।
(f) What is Java Beans? Explain the properties of Java Beans — simple, indexed, bound, and constrained. How are Beans different from normal Java classes?
Java Beans क्या है? Java Beans की properties — simple, indexed, bound और constrained — समझाइए। Beans normal Java classes से कैसे भिन्न हैं?
(g) Write short notes on any three: (i) Window class and Menus (ii) Dialog Box (iii) Object class methods (iv) instanceof operator
निम्नलिखित में से किन्हीं तीन पर संक्षिप्त टिप्पणी लिखिए।
Section — C
(खण्ड — स)
Long Answer Type Questions
(दीर्घ उत्तरीय प्रश्न)
Note: Q.3 has four sub-questions, each carrying 15 marks. Attempt any two in about 475 words each. [2×15=30]
3.
(a) Explain Polymorphism and Dynamic Binding in Java in detail. Discuss Method Overriding with the @Override annotation. Show how runtime polymorphism differs from compile-time polymorphism. Write a comprehensive Java program.
Java में Polymorphism और Dynamic Binding को विस्तार से समझाइए। @Override annotation के साथ Method Overriding समझाइए। Comprehensive Java program लिखिए।
(b) What is GUI programming? Describe the complete AWT component hierarchy. Explain Menus, MenuBar, MenuItem, and PopupMenus with a complete program that creates a text editor with menu options (New, Open, Save, Exit, Cut, Copy, Paste).
GUI programming क्या है? AWT component hierarchy समझाइए। MenuBar, MenuItem और PopupMenu को text editor program (New, Open, Save, Cut, Copy, Paste) सहित समझाइए।
(c) Explain Multithreading in Java comprehensively. What are the thread states? Discuss thread methods: start(), run(), sleep(), join(), yield(), wait(), notify(). Write a program for inter-thread communication using a shared buffer.
Java में Multithreading को व्यापक रूप से समझाइए। Thread states क्या हैं? Thread methods: start(), run(), sleep(), join(), yield(), wait(), notify() समझाइए। Shared buffer program लिखिए।
(d) Explain Text I/O and Binary I/O in Java comprehensively. Discuss FileReader, FileWriter, BufferedReader, PrintWriter, DataInputStream, DataOutputStream. Write a complete program to create, write, read, and append records to a student database file.
Java में Text I/O और Binary I/O को व्यापक रूप से समझाइए। FileReader, FileWriter, BufferedReader, PrintWriter, DataInputStream, DataOutputStream समझाइए। Student database file program लिखिए।