Download as pdf
Download as pdf
You are on page 1of 2
Save trees use e-Question Paper Go green DOWNLOAD THIS FREE AT www.viuresource.com we TL LITE scx Fifth Semester B.E. Degree Examination, Jan./Feb. 2021 Programming in JAVA Explain how decimal, octal and hexades ‘c. With proper declaration, explain dif tera! BRROUE initialized (06Marks) ays. Write a simple JAVA program to imme 3 he. Max. Marks: 80 ‘Note: Answer any FIVE full questions choosing ONE ful question fom cacy. i Must 21 List out the four main diffrences between Procedure Oriented ted a Progamming outs) 3b, Explain the folowing object oriented concepts: q @Polymorphism (i) Encapsulation Gi) Inherit (06 ark» ‘ cc. Explain type conversion in JAVA. Write the output of the foll Ae statement: 2 @byed=50: . babe? 7 Gi) char chl = *x’ 2 cee oo) ¥ oR B02 a JAVA strongly types language? sity yoo coasts : . Mention the different integer types supported ith their memory requirement. a é : : print 4 x $ matrix, (06Marks) 3. a, Explain the following operators O%= — Gi)> 3 (osmarks) bb. Explain the difference beni the (@ Logieal AND anc it AND Gi) Forloop and F suitable examples. (os tarts) oR 4 a, With suite the following jump statements: (i) continue (ii) break Provide p tion, (08 Marks) b. Explain all 1 operators. Consider a = 3 and b = 6, Apply Bitwise logical ‘operators on \ds and print suitable results. (os Marks) Module-3, ferentiate between method overloading and overriding, Create a class called Vehicle and 3s callgg Car which extends Vehicle. Mustrate overloading and overriding using the ip Between the classes. (os starts) © following keywords: (j) this (ji) super (ji) final_ (jv) static (08 Marks) on fale simple program to depict class C extends class B, class B extends class A and explain how constructors are called ifan object for elass Cis created (os Marks) ‘Explain the different Access Specifiers supported in Java, (4 Marks) ¢, Ilustzate dynamicmethod dispatch. With an example and show how is it achieved(06 Marks) Lof2 Inporus Note: 1. On competing your answers compulonly daw diagonal cosines onthe remaining lank pags. BRANCHES | ALL SEMESTERS | NOTES | QUESTON PAPERS | LAB MANUALS A Vturesource Go Green initiative Save trees use e-Question Paper Go green DOWNLOAD THIS FREE AT www.viuresource.com 15CS561 Module-4 7 a. Design an interface called Polygon with a method called area, Implement this Inter create different classes like Square, Rectangle and print the area of Square and Rectangh coos b. Define exception. Write simple progam to generate arithmetic exception and prin deserption a exception trae the program. ein «Wits simple program to rele package and impor the package to make yi of ca delared inthe package, su on 8 8, Whats an Abstract clase? Ilustte how can we make se of abs scree methods writen nan abst las with an example (esse) bp how tow trove and ally keyword or used with goo excMon. Write a Simple progam to genes chained exception wing tow (oxy) Module-5 9 a. Explain enumeration and type wrappers with is usage. coantarks) bb, What is an Applet? Write a simple Applet prograygyto print Ry message “My Simple “Applet” with suitable steps to execute on Applet (a8 fark) Explain different streams supported to perform i (oa nants) oR 10 a. Depict the usefulness of static import wi program. Is it advantageous 10 always make use of static import? Explai (Wo Marks) Illustrate the invoking of overloaded c ugh this () with a simple example, (od Marks) . Explain the difference between fer class. With proper syntax, explain the following methods: (Method to extract partie eff string GD Reve sata, < (Goan 2of2 BRANCHES | ALL SEMESTERS | NOTES | QUESTON PAPERS | LAB MANUALS A Vturesource Go Green initiative

You might also like