CSE Dept Engineering Topics List

Java Object Oriented Programming

Subject and UNIT: Object Oriented Programming: Unit IV: I/O, Generics, String Handling

Generic is a mechanism for creating a general model in which generic methods and generic classes enable programmers to specify a single method (or a set of related methods) and single class (or a set of related classes) for performing the desired task.

Methods, Purpose with Example Java Programs

Subject and UNIT: Object Oriented Programming: Unit IV: I/O, Generics, String Handling

InputStream is an abstract class for streaming the byte input. OutputStream is an abstract class for streaming the byte output. All these methods under this class are of void type.

Syntax with Example Java Programs

Subject and UNIT: Object Oriented Programming: Unit IV: I/O, Generics, String Handling

Hence System.out is an object used for standard output stream and System.in and System.err are the objects for standard input stream and error.

Definition, types with Example Java Programs

Subject and UNIT: Object Oriented Programming: Unit IV: I/O, Generics, String Handling

Stream is basically a channel on which the data flow from sender to receiver. An input object that reads the stream of data from a file is called input stream.

Exception Handling and Multithreading | Object Oriented Programming

Subject and UNIT: Object Oriented Programming: Unit III: Exception Handling and Multithreading

Exception is a mechanism which is used for handling unusual situation that may occur in the program.

Definition, Example Java Programs

Subject and UNIT: Object Oriented Programming: Unit III: Exception Handling and Multithreading

An automatic conversion of primitive data type into equivalent wrapper type is called as autoboxing.

with Example Java Programs | Multithreading

Subject and UNIT: Object Oriented Programming: Unit III: Exception Handling and Multithreading

Wrapper classes are those classes that allow primitive data types to be accessed as objects. The wrapper class is one kind of wrapper around a primitive data type.

with Example Java Programs

Subject and UNIT: Object Oriented Programming: Unit III: Exception Handling and Multithreading

Stopping a thread: A thread can be stopped from running further by issuing the following statement - th.stop();

with Example Java Programs

Subject and UNIT: Object Oriented Programming: Unit III: Exception Handling and Multithreading

Two or more threads communicate with each other by exchanging the messages. This mechanism is called interthread communication

types with Example Java Programs | Multithreading

Subject and UNIT: Object Oriented Programming: Unit III: Exception Handling and Multithreading

When two or more threads need to access shared memory, then there is some way to ensure that the access to the resource will be by only one thread at a time.

with Example Java Programs | Multithreading

Subject and UNIT: Object Oriented Programming: Unit III: Exception Handling and Multithreading

. • In Java threads scheduler selects the threads using their prioritie• The thread priority is a simple integer value that can be assigned to the particular thread.These priorities can range from 1 (lowest priority) to 10 (highest priority).

with Example Java Programs

Subject and UNIT: Object Oriented Programming: Unit III: Exception Handling and Multithreading

The multiple threads can be created both by extending Thread class and by implementing the Runnable interface.