|MODEL PAPE
4 x
PART-C
marks.
questions. Each
uuestion carries Five
Note : Answr all
program using constructor.
13. (a) Write a java
interface.
(or) using Runnable
Explain the process of creatina thread
13. (b)
events.
14. (a) Write a java
program to handle keyboard
(or) connection to database.
java application to establish a
14 (b) Develop a
programs.
statements with example
Explain the concept of multi-catch
15. (a)
(or)
example program.
15. (b) Explain deadlock with an
data from a database.
java program to insert update and delete
16. (a) Write a
(or)
a java program to handle
HTTP requests.
16. (b) Develop
WARNING XEROX | PHOTOCOPYING OF THIS BOOK IS ILLEGAL
MODELPAPERS
BOARD DIPLOMA EXAMINATION
MODEL PAPER-I SEMESTER END EXAMINATION
JAVA PROGRAMMING
DCSE Second Year - IV Semester
Hour
Time : 2 Max. Marks : 40
PART - A
8x1=8
Answer all questions. Each question carries One marks.
Note :
1 Write the syntax to declare a variable
2. List out java API packages.
3. Define multithreading.
4. List the uses of final keyword.
5. List the types of errors.
6. Define inter thread communication.
7. Define JDBC.
8. Define Servlet.
PART -B 4x3= 12
Note : Answer all questions. Each question carries Three marks.
9 (a) Descritbe the use of command line arguments.
(or)
9. (b) Discuss about thread priorities.
10. (a) Describe the concept of class path.
(or)
10. (b) List different types of JDBC drivers.
11. (a) What is synchronization? When do we use it?
(or)
11. (b) Demonstrate life cycle of a thread.
12. (a) Discuss about Resultset.
(or)
12. (b) List some classes in javax. servlet package.
XEROX |PHOTOCOPYING OF THIS BOOK IS ILLEGAL WARNING
[ MODEL PAPERS
BOARD DIPLOMA EXAMINATION
MODEL PAPER MID SEM-1|
JAVA PROGRAMMING
DCSE Second Year - lV Semester
Time : 1Hour Total Marks : 20
PART - A
4x 1= 4
carries One maxbe
Vote : Answer all questions. tach question
1. Define package.
2 Write the syntax to import a package.
3. Define Applet.
4 What is Delegation Event Model ?
PART -B
Note : Answer all questions. Each question carries Three marks.
2x3=6
5. (a) Explain the steps to create a package.
(or)
5. (b) Explore some classes in util package.
6. (a) Demonstrate life cycle an Applet.
(or)
6. (b) List and discuss AWT classes.
PART -C 2x5=10
Note : Answer all questions. Each question carries Five marks.
7. (a) Describe the concept of creating and accessing a package with an
example program.
(or)
7. (b) Write a java program using to read data from a file using BufferedReader class.
8. (a) Create an applet to draw graphics.
(or)
8. (b) Explain to handle Mouse events with an example program.
WARNING XEROX | PHOTOCOPYING OF THIS BO0K IS ILLEGAL
PREFACE- sTLLABUS - coNTENTS|
CONTENTS
CHAPTER1
INTRODUCTION TO JAVA I.|- 1.96
1.1 Basic Concepts of OOP (Object Oriented Programming) 2
1.2 Java History
1.3 Features of Java 7
1.4 Java with C and C++ 10
1.5 Java Tokens White Spaces, Literals, Separators, Keywords 14
1.6 Java Data Types 17
1.7 Declaration and Initialization of Variables 19
1.8 Perform Type Conversion and Casting Features 20
1.9 One-Dimensional and Two-Dimensional Arrays 22
1.10 Various Types of Operators 27
1.11 Selection and Iteration Statements of Java 34
1.12 Syntax of Break and Continue Statements 56
1.13 Classes and Objects 67
1.14 Constructors 7
1.15 Method Overloading
1.16 Use of this Pointer
1.17 Working of Static and Final Members
1.18 String Classes and Methods
1.19 Use of Command Line Arguments
REVIEW QUESTIONS
CHAPTER-2
INHERITANCE AND INTERFACES 2.1
2.1 Inheritance and Its Types
2.2 Types of Inheritance with Examples
2.3 Use of Super Keyword
XEROX | PHOTOCOPYING OF THIS BOOK IS ILLEGAL WAR
MODEL PAPERS BOARD DIPLOMA EXAMINATION
MODEL PAPER MID SEM-1
JAVA PROGRAMMING
Semester
DCSE Second Year - IV
Total Marks : 20
Hour 4 x 1= 4
Time: I PART-A
marks.
Each question carries One
Answe all questions.
Vote:
keywords of java.
1 List out any four
C+t.
Compare Java &
2.
Define inheritance.
3.
keyword.
4. What is 'super'
PART - B 2x3=6
carries Three marks
Note : Answer all questions. Each ques tion
5. (a) Describe the java data types.
(or)
5. (b) Describe stringclasses and methods.
6. (a) Compare class and interface.
(or)
6. (b) Briefly explain scope of variables in interfaces.
PART -C 2 x5=10
Note : Answer all questions. Each question carries Five marks.
7. (a) Develop a java program using static and final variables.
(or)
7. (b) Explain the structure of java with an example
program.
8. (a) Explain the concept of interfaces with an
example program.
(or)
8. (b) Develop a java program to implement multiple
inheritance through interfaces.
XEROX| PHOTOCOPYING OF THIS BOOK IS ILLEGAL WARNING
67 Serviet and Explain the Life Cycie of Serviet
PREFACE- STLLABUS-CONTENTS
6.8 37
Java Servlet Development Kit
6.9 [Link] Package and Sirmple Servlet
Programs
6.10 Handling HTTP Request and Responses with Example
50
" REVIEW QUESTIONS
MODEL PAPERS
ARNING XEROX |PHOTOCOPYING OF THIS BOOK IS ILLEGAL
PREACE SYLLARUS CONTENTS|
CHAPTERS
EXCEPTION HANDLING AND
PROGRAMMING MULIITHREADED 5.1 5.64
5.1 Different Sources of Errors
5.2 How to Deal with Exceptions and Types of Exceptions
5.3 General Form of Exception-Handling Block 12
5.4 Concept of Multi-Catch Statements with Example Programs 14
5.5 Nested Try Statements 19
5.6 Throw and Throws Clauses 21
5.7 Creation of User Defined Exceptions 25
5.8 Thread and Life Cycle of a Thread 29
Thread Priorities 31
5.9
5.10 Process of Creating Thread Using Thread Class and Runnable 35
Interface
5.11 Creation of Multiple Threads 39
5.12 Concept of Synchronization 42
5.13 Isalive() Join() Suspend() Resume() Method 47
5.14 Inter Thread Communication 55
5.15 Dead Lock with Example Programs 58
REVIEW QUESTIONS 62
CHAPTER-6
DBC AND SERVLETS 6.1 6.56
6.1 About JDBC and Understand JDBC Architecture 2
6.2 How to Establish Connection to Database 8
6.3 Implement Simple Application and Execute Query 11
6.4 Different Statements Used in JDBC 15
6.5 ResultSet 21
6.6 DDL and DML Programs using JDBC 27
XEROX /PHOTOCOPYING OF THIS BOOK IS ILLEGAL WARNING
te
|PREFACE
SYLLABUS -
24
Method Overriding and how to Avoid
Overriding Using Final
of Interfaces
c ONIENTt
24
5
Interface and Concept
Interface 25
2.6
Compare Class and
Extending Interfaces
Interface
2.8 Concept of Implementing 29
Interface
2.9 Scope of Variables in Interface 3
Usingthe Concept of
2.10 Multiple Inheritance 32
" REVIEW QUESTIONs
37
CHAPTER-3
PACKAGES
3.1 Package
3.1-3.4
3.2 About Java API Packages 2
ConceDt of Class Path
3.3
3.4 Concept of Access Specifiers 10
Using a Package and
3.5 Concept of Creating Accessing and 16
Subpackage
Packages
3.6 Appreciate the Concept of Importing 23
3.7 Exploring io and Util Packages
3.S Various Stream Classes 32
REVIEW QUESTIONS
CHAPTER-4
HANDLING 4.1 -4.5
CONCEPTS OF APPLETS. AWT AND EVENT
4.1 Applet and Life Cycle of an Applet
4.2 Creation of Applets with Example Programs
4.3 List and Discuss AWT Ciasses
4.4 AWT Controls with Example Programs
4.5 Event Handling Mechanism and Delegation Event Model
4.6 Sources of Events
4.7 Event Classes and Event Listener Interfaces
4.8 Mouse and Keyboard Events
" REVIEW QUESTIONS
WARNING XERDX | PH0TOCOPYING OF THIS B00K IS ILLEGAL