You are on page 1of 2

c 

II B.Tech CSE-2 mid Term-1: Descriptive

© 

 


¦ 

1. a) Describe agents, responsibilities, messages and methods in the way of


viewing the world.
b) Briefly describe the importance of the OOP paradigm?

2. a) Explain the following object oriented programming concepts in detail.


(i) Polymorphism (ii) Inheritance (iii) Encapsulation (iv) Abstraction
b) With an example, explain java recursion mechanism.

3. a) What is an object oriented programming? How is it different from procedure


oriented programming?
b) Write a java program using command line arguments, and explain.

4. a) What are benefits of object oriented programming.


b) Write a Java program to reverse a given long integer.

5. a) What is Inheritance? Explain various types of Inheritance and also write its
advantages and disadvantages.
b) Write a simple java program using multi-way branch statement, and explain.

¦ 

1. a) Write a java program using any five String library functions.
b) What is a constructor? Describe its special properties.

2. a) Explain the buzzwords of Java.


b) Describe java garbage collection mechanism?

3. a) Explain parameter passing techniques in JAVA with an example.


b) What are the Jump stunts in JAVA? Explain them.
c) Write a Recursive JAVA program to find the factorial of a given number.

4. a) Write a Java program to covert the given decimal number into binary number
using non-recursion.
b) What are nested classes and inner classes? Demonstrate with an example.
5. a) With an example, explain scope and lifetime of variables.
b) Compare string and string Buffer.

¦ 

1. a) Distinguish between abstract methods and non-abstract methods with an example.


b) What is dynamic method dispatch? Write a Java program to demonstrate dynamic
method dispatch.

2. Briefly explain about forms of inheritance?

3. a) Explain the usage of ¶super· keyword with an example.


b) What is command lone argument? How it is useful?
c) Compare overloading and overriding.

4. a) What is an Object class? Explain the Object hierarchy.


b) What will happen when you compile and run the following program.
public class MyClass
{
Public static void main (String args[])
{
System.out.println(´Hello worldµ);
}
}

5. a) What are the benefits of Inheritance?


b) Difference between THIS and SUPER keywords with an example?

¦  
1. Explain in detail the process of creating, defining, importing and accessing a package
with suitable examples.

2. a) What is an interface? In what way it is different from class? Describe


the similarities between classes and interfaces.
b) Describe the various forms of implementing interfaces.

3. a) What is a Java package? What is a CLASSPATH? Explain how to create and


access a Java package with an example.
b) Explain the usage of StingTokenizer class with an example.

4. a) Explain the various forms of access protection in Java.


b) Write the differences between an Interface and an Abstract class.

5. Explain the difference between an interface and a class with an example each.

You might also like