Csa 6003t Java Set b
Csa 6003t Java Set b
^^iz'u i= ij Øekad ¼jksy uEcj½ ds vfrfjDr dqN Hkh u fy[ks]a vU;Fkk bls vuqfpr lk/kuksa dks iz;ksx ekuk tk;sxk rFkk fu;eksa ds
vuqlkj dk;Zokgh dh tk;sxhA**
"Do not write anything on question paper except Roll number, otherwise it shall be deemed as an act of
indulging in unfair means and action shall be taken as per rules"
Section A (2x10=20)
Q1. Answer the following in 30-40 words
(a) What is token?
(b) Explain non-primitive data types.
(c) Define terms JDK JRE?
(d) What is Java virtual machine.
(e) Explain ternary operator?
(f) Write a program to print table of given number.
(g) What is class variable.
(h) Explain “super” keyword in java.
(i) What is local applet and remote applet.
(j) Explain multilevel inheritance.
Section B 12 marks for each question
Unit I
Q1. (a) Explain type casting and its types in java.
(b) Write a program to add two float data using command line argument.
OR
(a) Explain OOP concept in detail.
Unit II
Q2. (a) Explain Ladder if - else with proper example.
(b) Write a java program to find input number is prime or not. *
OR **
(a) Explain nested loops in java with proper syntax ***
(b) Write a program to print following pattern ****
******
Unit III
Q3. Explain function overloading with proper example.
Explain final method and final class in java
OR
Explain abstract class and abstract method in java with proper example.
Unit IV
Q4. How we achieve multiple inheritance in java explain in detail with example.
OR
Write a Java program to find the sum of diagonal elements in a 2D array.
Unit V
Q5. (a) Explain applet life cycle with proper diagram.
(b) What is runnable interface?
OR
Use exception handling to perform divide operation on array elements and handle multiple exception.