fourth semester computers

 FOURTH SEMESTER COMPUTERS

OBJECT ORIENTATED PROGRAMMING USING 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.forma( )

Arrays: Types of Arrays' Three Dimensional Arrays (3D array)' array name'length'Command Line Arguments

UNIT - II

Strings: Creating Strings, String Class Methods, String Comparison, Immutability of Strings Introduction to OOPs: Problems in hocedure 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 Header or 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 Arrys to Methods,Recursion, Factory 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 lnterfaces

Packages:Package,Different Types of Packages,The JAVA files,Interfaces in a Package,Creating Sub Package 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' Zipping and Unzipping Files' Serialization of Objects' Counting Number of Characters in a File, File Copy, File Class Threads:single Tasking,Multi Tasking,Uses of Threads,Creating 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' Deadlock of Threads'Thread Communication, Thread Priorities, thread Group, Daemon Threads, Applications of Threads, Thread Life Cycle

UNIT_V

Applets: Creating an Applet, Uses of Applets, <APPLET> tag A Simple Applet' An Applet with Swing Components, Animation in Applets, A Simple Game with an Applet, Applet Parameters 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--odbc Bridge Driver to Connect to Oracle Database, Retrieving Data from MySQL Database, Retrieving Data from MS Access Database, Stored Procedures and Callable Statements, Types of Result Sets