1 Introduction To Java
1 Introduction To Java
Lecture 1 :
Introduction to Java
Syllabus
UNIT – I
Java Programming: Introduction, Data types, access specifiers, operators, control
statements,arrays.
Classes: Fundamentals, objects, methods, constructors.
Inheritance: Super class,sub class,this and super operator, method overriding, use of final,
packages, abstract class, interface.
Polymorphism: Method overloading, constructor overloading.
UNIT – II
Exception Handling: Exception Class, built in checked and unchecked exceptions, user
defined exceptions, use of try, catch, throw, throws, finally.
Multi threaded programming: Overview, comparison with multiprocessing ,Thread class
and runnable interface, life cycle, creation of single and multiple threads, thread priorities,
overview of Synchronization.
Java Library: String handling (only main functions), String Buffer class.
Elementary concepts of Input/Output :byte and character streams, System.in and
System.out, print and println, reading from a file and writing in a file.
Syllabus
UNIT – III
Software Development using Java:
Applets :Introduction, Life cycle, creation and implementation,
AWT controls: Button, Label,TextField, TextArea, Choice lists, list, scrollbars,
check boxes,Layout managers,Elementary concepts of Event
Handling :Delegation Event Model, Event classes and listeners,Adapter classes,
Inner classes.
UNIT – IV
Networking Basics: Socket (datagram and TCP/IP based client and server
socket), factory methods, InetAddress
• Classloader- adds security by separating the package for the classes of the
local file system from those that are imported from network sources.
• Bytecode Verifier- checks the code fragments for illegal code that can
violate access right to objects.
• Security Manager- determines what resources a class can access such as
reading and writing to the local disk.
Features of Java
Robust : Robust simply means strong. Java uses strong memory
management. There are lack of pointers that avoids security problem.
There is automatic garbage collection in java. There is exception
handling and type checking mechanism in java. All these points makes
java robust.
class Simple{
public static void main(String args[]){
System.out.println("Hello Java");
}
}
save this file as Simple.java