Pages

Tuesday, 26 April 2022

Java - Syllabus & Model Question paper

Java - Syllabus

Objectives:

To introduce the fundamental concepts of Object-Oriented programming and to design &implement object oriented programming concepts in Java.

Course Learning Outcomes: At the end of this course student will:

1.Understand the benefits of a well-structured program

2.Understand different computer programming paradigms

3.Understand underlying principles of Object Oriented Programming in Java

4.Develop problem-solving and programming skills using OOP concepts

5.Develop the ability to solve real-world problems through software development in high-level programming language like Java

UNIT– I

Introduction to Java: Features of Java, The Java virtual Machine ,Parts of Java

Naming Conventions and Data Types: Naming Conventions in Java, Data Types in Java, Literals

Operators in Java: Operators, Priority of Operators

Control Statements in Java: if... else Statement, do... while Statement, while Loop, for Loop, switch Statement, break Statement, continue Statement, return Statement

Input and Output: Accepting Input from the Keyboard ,Reading Input with Java.util.Scanner Class, Displaying Output with System.out.printf(), Displaying Formatted Output with String.format()

Arrays:Types of Arrays,2DArrays and 3D Arrays, arrayname.length ,Command Line Arguments.

UNIT– II

Strings: Creating Strings, String Class Methods, String Comparison, Immutability of Strings

Introduction to OOPs: Problems in Procedure Oriented Approach, Features of Object-Oriented Programming System (OOPS)

Classes and Objects: Object Creation, Initializing the Instance Variables, Access Specifiers, Constructors

Methods in Java: Method Head error Method Prototype, Method Body, Understanding Methods, Static Methods, Static Block, The keyword ‘this’, Instance Methods, Passing Primitive Data Types to Methods, Passing Objects to Methods, Passing Arrays to Methods.

Inheritance: Inheritance, The keyword ‘super’, The Protected Specifier, Types of Inheritance

UNIT– III

Polymorphism: Polymorphism with Variables, Polymorphism using Methods, Polymorphism with Static Methods, Polymorphism with Private Methods, Polymorphism with Final Methods, final Class

Type Casting: Types of Data Types, Casting Primitive Data Types, Casting Referenced Data Types, The Object Class

Abstract Classes: Abstract Method and Abstract Class

Interfaces: Interface, Multiple Inheritance using Interfaces

Packages:Package,Different Types of Packages, The JAR Files, Interfaces in a Package, Access Specifiers in Java, Creating API Document, Exception Handling: Errors in Java Program, Exceptions, throws Clause, throw Clause, Types of Exceptions, Re – throwing an Exception.

UNIT– IV

Streams: Stream, Creating a File using File Output Stream, Reading Data from a File using File Input Stream, Creating a File using File Writer, Reading a File using File Reader.

Threads: Single Tasking, Multi Tasking, Uses of Threads, Creating a Thread and Running it, Terminating the Thread, Single Tasking Using a Thread, Multi Tasking Using Threads, Multiple Threads Acting on Single Object, Thread Class Methods. Thread Communication, Thread Priorities,  Applications of Threads, Thread Life Cycle.

UNIT– V

Servlet and JSP: Introduction to Servlet, Life Cycle of Servlet, Introduction to JSP , Life Cycle of a JSP, difference between Servlet and JSP, basic programs using JSP.

Java Database Connectivity: Database Servers, Database Clients, JDBC (Java Database Connectivity), Working with Oracle Database, Working with MySQL Database, Stages in a JDBC Program, Registering the Driver, Connecting to a Database, Preparing SQL Statements, Using JDBC Bridge Driver to Connect to Oracle Database, Retrieving Data from Oracle Database, working with Result Sets.

Model Question Paper

Section – A

Answer the following 5 X 10= 50M

1. (a)Explain the concept of Object Oriented Programming. Applications of OOPs. [CO1]

Or

    (b)Explain about control structures. With examples each.    [CO1]

2. (a)Explain about arrays and types of arrays.With examples. [CO2]

Or

    (b)Define anInheritance.Write type of inheritance with example.  [CO2]

3. (a)Write about Polymorphism and types of Polymorphism with example. [CO3]

Or

(b)Write about Interface with an example program. [CO3] 

4. (a)Define Exception Handling, write types of exceptions. Write a program using exception. [CO4]

Or

(b)Explain about Thread Life Cycle. [CO4]

5. (a)Define Servlet and JSP and write a program to demonstrate JSP. [CO5]

Or

    (b)Write a short note on JDBC and write program to connect to Oracle Database.    [CO5]


Section – B

Answer any five questions. 5 X 3 = 15 M


6. Define operator.  List all operators and explain with example any three of them.  [CO1]

7. What is java virtual machine? Explain. [CO1]

8. Define constructor.  Explain about types of constructor. [CO2]

9. Define inheritance. Write a java program to implement single inheritance. [CO3]

10. Write a short note on throw key word. [CO4]

11. Draw thread Life Cycle diagram. [CO4]

12. Define package. How to create user defined packages with example? [CO5]

13. Write a short note on Thin Driver. [CO5]

Section – C

     Answer all Questions 5 X 2 = 10M

14. Write a short note on break and continue statements. [CO1]

15. What are various types of access specifiers? [CO2]

16. What is an abstract method?                      [CO3]

17. Define run() method in Threads. [CO4]      

18. What is a Result Set?                                          [CO5]


No comments:

Post a Comment

Servlet - JSP Programs

JSP(Java Server Pages) Programs : JavaServer Pages (JSP) is a Java standard technology that enables you to write dynamic data-driven pages f...