0% found this document useful (0 votes)
3 views11 pages

Question Paper Java

The document outlines a question bank for a B.E/B.Tech course on Object-Oriented Programming with Java, covering various topics such as Java operators, control statements, inheritance, exception handling, and multithreading. It includes specific questions for each module, requiring students to develop Java programs and explain concepts with code snippets. The assessment format allows students to choose questions from different modules, with a total of 100 marks available.

Uploaded by

sonikams11
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
3 views11 pages

Question Paper Java

The document outlines a question bank for a B.E/B.Tech course on Object-Oriented Programming with Java, covering various topics such as Java operators, control statements, inheritance, exception handling, and multithreading. It includes specific questions for each module, requiring students to develop Java programs and explain concepts with code snippets. The assessment format allows students to choose questions from different modules, with a total of 100 marks available.

Uploaded by

sonikams11
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
TLL phird Semester [Link]/BS ‘ BCS306A, Object Orien éton, nfiing” » June/July 2025 pe 3 BS: po o8 with Java me! ¢ ote: I. Answer any FIVE fult mY NOES EM: Marks, L: Bloom's feat 22 choosing Givi: hie Max. Marks: 100 + © Course outcomes, M0" from each module, we, A Fi Module=1 [stand olan contol statements ae 5 — (1 *++7ist and explain operators i Java with pro; Ff _* [MTL ¢ wtp. | List PI )perators in Jaya.) S Progtamnming exampl “10 [1 [or 10; Li | cot e Flow are arrays declar a lized * 2 example. : £\ in Java, Explain with suitable |10]/ 12 | Cor _-Tp, | Develop a Java program'to add i ? ‘wo matrices of suigbié order N 10| £6 | COI jt 7 ’ [a] With code Snippet, explain d nodule = 22 it 2 Sxprain different Access spécifiers ig Tain thé Gétbage ovllecti cess Spécifiers in Java, 10] £2 1 C02 [| Explain the Garbage col lection and finalize() method in Java” ratte con With code snippet, expla oR ith code snippet, explain method overloading in Java Develop a stack class to hold & maximum of 10 integers wi 10 | £3 | COs f ers wil methods. Develop a Java main'method to illustrate Sackeepeations faite | 18) 36 | C02 oe __ e Module-3_ 0 ~ < 55 Ja. | What is inheritance? Discuss different types] of inheritance with Suitable | 10] L2 | COS | example. C3 ay —Tp, | Develop a Javaiprogram to create a class,named SHAPE, creaté three sub | 10| L6 | CO3 classes namely»CIRCLE, TRIANGLE and SQUARE. Each’ciass has two member functions named DRAW. ( ) and ERASE (). Demonstrate .d3, defining member Xe Ta Demonstrate with code Snippet method overriding in Java and justify with | 10] 13 | COS ode snippet preventiofi of overriding in inberitance. __ Briefly explain implementation of interface by taking suitable example. T0| 12 | CO3 eS ms _ al Module—4 —| % wos ii 10 | 12 [Cos | Ta: | What is package? How to [Link] import packages in Java Hoe cod ‘What is an exception? [Link] followings qi) try Gi) catch Gil) throw (iv) throws ¢ (&) finally, eh OR xeeption cla: How do you create in the following Built-in Exception h respect (0 P' terms wil ns BCS3064 113 Teay ackages Po ii Access protection for packages Ly Pe Module —5. ’ 10} 12} cos a Ta] What & mltireading? List and Fain, the methods to implei 5 / | multithreading. ed 12 | Cos) B. | Explain the followings : ~ (Enumeration “3 12 | cos (i) Type wrappers Y a Se - 3 OR [oso Ta. | Tad eli tig of a ee 7 at is Autoboxing? \Write @ Java Prograin( that demonstrates | 10 w Cos 0s ours inside expressions. “> autoboxing/unboxin, | "| % Se, 8 Uitte Up Ben hereanner nn NEFERENCE ONLY | seceded Sentester BLE /B-Tech, Object Oriented . Te or Degree Examtiadion, June/Jut + Sune/Suly 2025 Programming with Jawa Max. Marks: 100 3 hrs. sire Note: 1 Answer any FIVE sult Hrestions, choostiip on, 2 MEE Mars, Loom tenet eesti ONE: full question from euch nna RE Dy ices Modules itline primitive data types in Java ee Supe a pes in Java. > Ps et] €or Explain Java type cor L- exphain SRE WIR wae ASS 5 | £2 | Cor j— velop java code to tra Os: mi fe (Been anspdse s mate, 7 10] 13 | Cor — OR Sunn as OS OR Summarize Java Opeiators. 3] 12] cor Explain Java control Statements rye 5} a2 | cor & | Develop Java Code t addl two matrioes 10 | £3 | Cor ae Module 2 = a. | Pefine class, object, new, constructor and garbage collection ia Java. : ves b. | Explain the general form ofa lass in Java and wikia ample, aSo[ |? [ eo? Ae Develop a stack class:to‘hold a maximum oF (0 integers with suifable | 10 | L3 | COZ methods. Develop a java main method to dMastraté stack operations. aA} = | 1] coz ALS OR a. | Define [Link], this keywords % ‘and ages control in Java, 5 |i | coz b. | ExplainJava method overloading with a code snippet 5 | 12 | coz Develop a class employee, details with attributes*ID, name and salary} 10} £3 | COZ Implement a method raise’ salary (percent), which raises saley ef ea employee for a given petcent. Implement aclass employee to demonstrate the employes details arid his salary increase by the given percent, Module —3 | Befine method overriding, dynamic method dispatch, abstract class and | S | LI] COs uses of suiper in Java. > b. | Explain with a java code shippet how inheritance can be prevented? 3 | 12 | cos ¢- | Develop a Java program to create a class named shape Greate three | 10] 13 | COs sub-classes namely : circle, triangle and square, cach class has two member functions named ‘draw( ) and erase( ). Demonstrate polymorphism concepts by developing suitable methods, defining member data and main program, Tora ion [a. | How do you create. you! wat ms with respect to packagesiy “7 (ii) Access protection for packages “3 e ‘Module-5_. > OR — sun exception class? Explain with’code snippet. 179) if {10 | to implenme b.] Explain the following te @ Built-in Exceptions cS is 9 iE [es is multithreading? List and exp! a fhe methods Ce multithreading. eT Ren B. | Explain the followings : ‘ e Enumeration 7 ii) Type wrappers Q3 | a. | Develop a program in 2OGG implement a stadl be TZ] 13 [cox What "are “constructors Give the or 723| Coz constructors, Supporewith ‘appropriate Fig emPlain the properties oF | 4 ° oy Nad OA | & | Mistate With i example prog ee ‘e objects as argurfients. 10/12 | Coz 2. be Explain Gitierent access spesiftésn Java with examene rogram. _— ‘> wy =) Module=3 Détine inheritance. List end explain differéut'iypes of inherlancs in Java 19 [L2 | cos th code snippetsy 10] x2 | Coz x . | Compare and Satiast bemcar pMoeding and overriding in Java with | 10 |L2 | COs example Breaxefi for each. v a fc it JB%a and list out the speed oF an THIGFTRGS- Mlustrate | 10] 12 | Cos with the help of a progaeghe importance of an interface. WSs Of Sinal and demonstrate each with the oF code} iota ‘cos snippets. 7] Detine a package. Explai ‘example. excoption handling in Java. | Gi idling: block. List the types of €X¢5 Develop a Java program to raise @ custo! using try, catch, throw and finally. [Pati read strate creation of mulGple threads with a program, EEE che hoo ways in which Java thrends can be instantiated. Support cetiten with a sample progrant. ed & "| Qy fe: 70] =] — is enumeration? Explain th ‘methods values( alueof{ ). ; | Explain about type ea ‘auto boxing. = ni pepartment of Computer Science and E, mez object oriented programming with JAVA ect Nv Mor ile-1 Question Bank. Cotlere of Mnayincering gineering Subject Code: BCS306A Question | ject oriented principles. i, Eatoribe the meaning of each of the Key word Ta "publie Hallé vord 3, | Peres and write an example program. i oe = different lexical issues in JAVA T= heer 8 Fn different types of arrays with simple programy Cor 7 EXE different promotion rules in JAVA. Cor 7 5 |B ain the following oper ; COI =| 6 | Oe nos Gid>>> Ge ; | Demonstrate the working of enhanced forloop with aivexample | COI] L217 7 | program : Frvte a program to sort the elements using for Toop. cor ji i7_ S| Fplain four different types oF if statements in JAVA WH cor [iz 8 9. | Berle. | |e onsirate working of break with labels in JAVA cor [iz {7 | | (Fr pisouss different versiofis of foRloop with examples, SOL | La || [Write a program fo iluswate break statement with labels cor [iz Module-2 Question Bank Question CO | Level | Marks | (St aha ars constructors? Explain two types oF constrictors with cz fis [8 | | Sain satle variable and slats methods in JAVA coz [a2 |7 |—3 writea program to perform Stack operation using proper class coz | 12 7 ‘and Methods. |_| Raplain use of his in TAVA with example program, coz [13s [8 |g. [ Explain memory allocation and use of garbage collector im JAVA. | COZ] L318 |< | Write a JAVA program demonstrating Method overloading, coz [i217 +7, } Explain call by value and call by reference with example program. | COZ) L2} 8 |g. | Explain nested and inner classes, coz [12 8 9, | Distinguish between method overloading and method oveniding. | COZ} 1318 VINEE rie AY Ein wits rogaee [Coa JAF Ts fa W REAITEfropam io andes Fi tyes {program (0 implement mult Tevel inher : (P8—cz program to miplement miu Tevel inheritance witha “rte ® . : VY wee of 1 70 extend interface assuming ailable ea Le [ioeestt ; E ing suitable data, > oh Hqate 117 evel inheritance? Explain with suitable example i at by interface? State Ts need and write syntax and terface. ; 2 pest Sr ritance and polymorphism eater of Tava, Ee hod overriding with suitable example, 4 Bp orance of super Keyword in inheritance? Mustrate with fiat ample. a ( hgerranet nome ‘o implement inheritance and polymorphism in © 0 concent oh nesting of interface, phat is bt class ed abstract method? Explain with example, ie Se — Module-4 Question Bank T Question co > Gaumerations. Give an example, = eS COT Level | Marke | <—jues() and value Of() methods in Enunierations ail cos = - vital Je examples. 7 = & sje rations in Java are class types'-justify this statement wi pat examples. je wan | COS | Ff Are note on ordinal and compareTo() methods, Gi [et wrapper classes? Explain with examples, = rr lq ih

You might also like