1 R 3 List any six features of Java.
List all primitive data types available in Java with their storage sizes
1 R 3
in bytes.
1 R 4 List the standard default values of each datatype.
1 U 3 Explain any three logical operator in java with example.
Describe any three features of Java. (Object oriented,
Encapsulation, Platform Independant, Robust, Simple, Secure,
1 U 3
Multithreaded, Backward Compatibility, Compiled and Interpreted,
Inheritance, Polymorphism)
1 U 4 Explain two dimensional array in java with example.
1 U 4 Illustrate with example the use of switch case statement.
Explain scope of variable? Give example of class variable,
1 U 4
instance variable and local variable.
1 U 4 Differentiate between If statement and switch statement
1 U 4 Explain two dimensional array in java with example.
1 U 4 Illustrate with example the use of switch case statement.
1 U 4 Explain any two relational operators in Java with example.
Explain scope of variable. Give example of class variable, instance
1 U 4
variable and local variable.
1 U 4 Explain the java program structure with different section.
Explain the concept of platform independence and portability with
1 U 4
respect to Java language.
1 U 4 Describe any two features of Java
Write a program to generate Fibonacci series 1 1 2 3 5 8 13 21 34
1 A 3
55 89.
1 A 3 Write a program to find out whether entered no. is prime or not.
1 A 3 WAP to reverse a three digit number.
Write a java program to display all the odd numbers between 1 to
1 A 4 30 using for loop
& if statement.
Write a program to find out sum of even and odd numbers. Use
1 A 4
suitable range.
1 A 4 Write a program to calculating area and perimeter of rectangle.
Write a program to find greater number among two numbers using
1 A 4
conditional operator.
2 R 3 List any three methods of string class and state the use of each.
2 R 3 State any three methods and their use of wrapper class.
Define a class and object. Write syntax to create class and object
2 R 3
with an example.
Define wrapper class. Give the following wrapper class methods
with syntax and use:
1) To convert integer number to string.
2 R 4
2) To convert numeric string to integer number.
3) To convert object numbers to primitive numbers using
typevalue() method.
Describe the use of any six methods of vector class with their
2 U 3
syntax.
2 U 3 Explain this keyword with suitable example.
Explain wrapper classes in Java with any one wrapper class with
2 U 3
its methods.
Explain the command line arguments with suitable example. /
2 U 3 Explain the way command line argument passed to the java
program, explain with suitable example.
Explain constructor? Describe the use of parameterized
2 U 4
constructor with suitable example.
2 U 4 Explain method overloading with example.
Explain the types of constructors in Java with suitable example.
2 U 4 (Default constructor, no-arg constructor, Parameterized
constructor, copy constructor).
2 U 4 Explain in detail garbage collection mechanism in java.
Explain constructor with its type, Give example of parameterized
2 U 6
constructor.
Explain need and working of garbage collection mechanism and
2 U 6
use of finalize method.
2 U 6 Explain garbage collection and finalize method in Java
Write a java program to implement following functions of string:
(1) Calculate length of string
2 A 3
(2) Compare between strings
(3) Concatenating strings
Write a program to accept two numbers as command line
2 A 3
arguments and print the addition of those numbers.
Write a program to accept number from command line and print
2 A 3
square root of the number.
Define a class circle having data members pi and radius. Initialize
2 A 4 and display values of data members also calculate area of circle
and display it.
Define a class student with int id and string name as data
2 A 4 members and a method void SetData ( ). Accept and display the
data for five students.
Write a program to add two strings using command line
2 A 4
arguments.
Define a class ‘Book’ with data members bookid, bookname and
2 A 5 price. Accept data for four objects using Array of objects and
display it.
Define a class person with data member as Aadharno, name,
2 A 5 Panno implement concept of constructor overloading. Accept data
for 5 object and print it.
Write a program to add 2 integer, 2 string objects to a vector.
2 A 5
Remove any one element and display the list.
Write a program to create a vector with seven elements as
2 A 6 (10,30,50,20,40,10,20). Remove elements 3rd and 4th position.
Display original and current size of vector.
1,2 U 3 Differentiate between array and vector. (three points each)
3 R 4 State any four system packages along with their use.
3 R 4 Write syntax to inherit one interface into another interface
3 U 3 Explain single level inheritance with suitable example.
3 U 3 Explain package creation with suitable example
3 U 3 Explain inheritance. List types of inheritance.
3 U 4 Demonstrate the concept of method overriding with example.
3 U 4 Explain method overriding with suitable example.
Explain with example how to achieve multiple inheritance with
3 U 4
interface.
3 U 4 Explain abstract class with suitable example.
3 U 4 Demonstrate the concept of method overriding with example.
3 U 4 Explain this keyword with suitable example
3 U 4 Differentiate between class and interface
Differentiate between method overloading and method
3 U 4
overriding
Design a package containing a class which defines a method to
3 A 4 find area of circle. Import it in java application to calculate area
of circle.
WAP to implement the following inheritance. (any diagram will
3 A 4
be given)
Write a java program to implement multilevel inheritance with 3
3 A 6
levels of hierarchy.
Design a package containing a class which defines a method to
3 A 6 find an area of a circle. Import it in java application to calculate
the area of the circle.
Differentiate between method overloading and method
2,3 U 4
overriding.
4 R 3 Define exception. State built-in exceptions
4 R 4 Define throws & finally statements with its syntax and example.
4 U 4 Explain life cycle of thread
4 U 4 Explain thread priority and method to get and set priority values.
4 U 4 State & explain types of errors in Java.
4 U 4 Explain try-catch statement with one example
Explain the following terms w.r.t. exception handling: 1) try-catch 2)
4 U 4
throw 3) throws 4) finally
Explain the following methods with suitable example 1) setpriority(int
4 U 4
max) 2) getpriority()
4 U 4 Explain synchronization in multithreading
4 U 4 Explain thread priority and method to get and set priority values
4 U 6 Explain thread life cycle with suitable diagram
Write a program to create two thread one to print odd number
4 A 4
only and other to print even numbers.
Write a program to input name and salary of an employee and throw
4 A 4
user defined exception if entered salary is negative
Write a program to input name and salary of employee and
4 A 6
throw user defined exception if entered salary is negative.
Write a program to create user defined exception “Minimum
4 A 6
Balance” if the account balance is less than Rs.1000/-.
WAP to throw authentication failure exception if the user has entered
wrong password i.e. accept the password from the user and then
4 A 6
rechecked
if it is properly entered then valid user exception should throw.
Write a program to create two threads, one thread will print even no.
4 A 6
between 1 to 50 and other will print odd number between 1 to 50
5 R 4 Describe file output stream class with one example
5 U 3 Explain stream and various types of streams
5 U 4 Distinguish between input stream class and output stream class
5 U 4 Differentiate between Input stream class and Reader class.
5 U 4 Differentiate between input stream class and output stream class
Explain the following classes 1) Byte stream class 2) Character stream
5 U 6
class
Write a program to count number of words from a text file using
5 A 4
stream classes.
Write a program to copy contents of one file to another file using
5 A 4
character stream class
6 R 4 Write syntax and example of : 1) drawRect() 2)drawOval()
Describe the use of following methods:
6 R 4
(i) Drawoval ( ) (ii) getFont ( ) (iii) drawRect ( ) (iv) getFamily ( )
Describe the following attributes of applet.
6 R 4
(i) Codebase (ii) Alt (iii) Width (iv) Code
6 R 6 Describe the applet life cycle in detail with diagram
6 U 4 Explain life cycle of applet
6 U 4 Differentiate between Java Applet and Java Application (any four points)
6 U 4 List and explain Applet attributes.
6 U 4 Explain draw arc function with example.
6 A 4 WAP to draw a triangle inside an applet.
Design an applet which displays rectangle filled with blue colour and
6 A 4
display message as “GP EXAM” in red colour below it.