CSA 6003T Java Set A
CSA 6003T Java Set A
^^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) Write different type of data types in java?
(b) What do you mean by polymorphism?
(c) Explain entry-controlled loops in Java.
(d) What is command line arguments?
(e) Write a program to print random value between 1 to 10.
(f) Write different type of access specifier in java.
(g) Explain “this” keyword in java.
(h) Define array. How we initialize 2D array in java.
(i) What is package in java.
(j) Explain syntax of main function in java
Section B 12 marks for each question
Unit I
Q1. What is Operator? Explain different types of operators in java also define operator precedence
OR
Explain features of java in details.
Unit II
Q2. (a) Explain switch case with proper example.
(b) Write a java program to print Fibonacci series up to N number.
OR
(a) Explain labelled loops in java
(b) Write a java program to find addition on N number input by user.
Unit III
Q3. What is constructor? Explain different type of constructor in java.
OR
Explain function overriding with suitable example.
Explain static member function.
Unit IV
Q4. (a) What is inheritance? Explain different types of inheritance in java.
(b) Write a program to find largest element form an array.
OR
Write a program to perform matrix addition in java.
Unit V
Q5. (a) Explain Thread life cycle with proper diagram.
(b) What is thread synchronization?
OR
What is exception? Explain exception handling blocks in java with example.