0% found this document useful (0 votes)
239 views5 pages

II I Cse Aids Aiml Cse (Aiml) Cse (DS) JAVA QUESTION

This document is a question bank for B.Tech I Year I Semester students at Shadan College of Engineering & Technology, focusing on Object Oriented Programming through Java. It includes short answer and long answer questions divided into five units covering topics such as classes, inheritance, exception handling, event handling, and applets. The questions aim to assess students' understanding of Java programming concepts and their applications.

Uploaded by

jsijdhsuys
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
239 views5 pages

II I Cse Aids Aiml Cse (Aiml) Cse (DS) JAVA QUESTION

This document is a question bank for B.Tech I Year I Semester students at Shadan College of Engineering & Technology, focusing on Object Oriented Programming through Java. It includes short answer and long answer questions divided into five units covering topics such as classes, inheritance, exception handling, event handling, and applets. The questions aim to assess students' understanding of Java programming concepts and their applications.

Uploaded by

jsijdhsuys
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

SHADAN

COLLEGEOFENGINEERING&TECHNOLOGY
(ANAUTONOMOUS INSTITUTION)
PEERANCHERU,HYDERABAD-500091

B.Tech.IYearISemester(R23Regulation)
[CSE,AIDS,AIML,CSE (AIML),CSE(DS)] QUESTION BANK
OBJECT ORIENTED PROGRAMMING THROUGH JAVA
SHORT ANSWER QUESTIONS.

UNIT I

1.​ Define the basic characteristics of object oriented programming?


2.​ What is the difference between an object and a class?
3.​ What is the necessity of overridden methods?
4.​ Define polymorphism?
5.​ Differentiate between print() and printin() methods is Java?

UNIT II
1.​ Define a Package? What is its use in java? Explain.
2.​ what is interface give an example?
3.​ What are the methods available in character streams?
4.​ What is Serializable interface?
5.​ List out benfits of stream oriented I/O?
UNIT III

1.​ List checked exceptions of Java?

2.​ What is the difference between error and an exception?

3.​ What are the benefits of exception handling?

4.​ Differentiate process based multitasking and thread based multitasking?


5.​ Describe the main thread?
6.​ How to create a thread?
7.​ What is thread based preemptive multitasking?

UNIT IV​

1.​ Define event?

2.​ What is event model?

3.​ What are the different types of layout?

4.​ What is event listener? Explain.

5.​ What is an adapter class? Explain with an example.

UNIT V

1.​ Expalin briefly about applets?

2.​ How do applet differ from application program?

3.​ Write about Check Box?

4.​ Why do applet classes need to be declared as public?

5.​ What is a swing?


LONG ANSWER QUESTIONS UNIT I

1.​ a) Write about class hierarchies/inheritance and method binding.


b) What is meant by byte code ? Briefly explain how java is platform independent.
[5+5]

2.​ a) List the primitive data types available


in java and explain.
b)​ What are the different types of Operators present in Java? Explain.
[5+5]
3.​ a) Explain the different types of loops with examples.
b)​ Explain in detail about the concept of access control in java. ​ [5+5]

4.​ a) Define inheritance. Write about superclass and subclass.


b)​Write the significance of Java virtual machine.​ [5+5]

UNIT II

5.​ a) Discuss the different levels of access protection available in java?​ [5+5]
b)​What is interface ? What are the similarities between interface and classes?

6.​ a) Distinguish Between Byte Stream classes and character stream classes?
b) Describe the process of importing and accessing a package with suitable examples?
[5+5]
7.​ a) What is the use of auto boxing in java? Explain.
b)​Given an example where interface can be used to support multiple inheritance.
[5+5]
8.​ a) Explain the scope of variables in interfaces.
b)​How interfaces can be extended? Explain?
​ [5+5]
9. a) What are differences between an interface and class? Explain with suitable example.
b) Explain the concept of streams and about stream classes and classification? ​ [5+5]

10. a) Explain character stream classes?


b) Explain the process of reading console input using byte streams?​ [5+5]
UNIT III
11. a) What is an exception? Explain how an exception can be handle in Java. Also , list the
benefits of exception handing?
b) What are termination and resumptive models? Write about uncaught exception. ​ [5+5]

12. a) Explain the concept of multiple catch clauses. Is it possible to nest the try statement? If , yes explain?
b) How to creat a user-defined exception?Explain with an example? [5+5]

13. a) What do you mean by an exception and error? Give the hierarchy of the exception in Java?
b) Explain the process of creating an own exception subclass with an example?​ [5+5]

14. a) Write a Java program that demonstrates how certain exception types are not allowed to be thrown?
b) Compare and contrast process-based multitasking and thread based multitasking?
​ [5+5]

15. a) Define thread? Explain the thread model of Java?


b) What does extending a thread mean? Explain by means of a program? ​ [5+5]

UNIT IV

16 a) Explain in brief about user-interface components in event handling?


b) Explain in brief about layout management types? ​ [5+5]

17.​a) What is an event driven programming and how is it structured?


b)​How events are categorized in Java? Explain.
​ [5+5]
18.​a) Write a program to create a frame window that responds to key strokes?
b)​Write Java program to handle mouse and keyboard events?
[5+5]
19.​a) What is an adapter class and how can adapter classes are effective?
b)​ Explain the concepts of Event Handling?

20.a)What are the different types of events.Expalin in brief?


b)Explain adaptor classes with an examples?

UNIT V

21.a) Discuss about different applet display methods in brief?


b)​ Write the applets to draw the cube and cylinder shapes? [5+5]
22. a) What is an applet? Explain the life cycle of applet with a neat sketch?
b) What is the difference between init() and start () methods in an applet? When will each be executed?
[5+5]

23.a) Explain various text components in JFC with examples?


b) Describe about applying check boxes?
[5+5]
24. a) With a program , explain how to create popup menu’s in swing?
b) Explain the following
a) JScrollpane.
b) Combo boxes.

25. a) What is swing? Discuss its features. list out the limitations of AWT?
b) Discuss model view controller (MVC) architecture? ​ [5+5]

You might also like