Malla Reddy College of Engineering and Technology (MRCET)
MALLA REDDY COLLEGE OF ENGINEERING AND TECHNOLOGY
III Year B.Tech. I Sem
L T/P/D C
3 -/-/- 3
OPEN ELECTIVE II
(R18A0552) INTRODUCTION TO JAVA PROGRAMMING
COURSE OBJECTIVES:
This subject aims to introduce students to the Java programming language. Upon successful
completion of this subject, students should be able
1) to create Java programs that leverage the object-oriented features of the Java
language, such as encapsulation, inheritance and polymorphism;
2) use data types, arrays and strings;
3) implement error-handling techniques using exception handling,
4) create and event-driven GUI using AWT components.
UNIT I: OOP Concepts:
Data abstraction, encapsulation, inheritance, Polymorphism,
classes and objects, Procedural and object oriented programming paradigms.
Java Basics History of Java, Java buzzwords, data types, variables, constants, scope and life
time of variables, operators, expressions, control statements, type conversion and casting,
simple java programs, concepts of classes, objects, arrays, strings, constructors, methods,
access control, this keyword, garbage collection, overloading methods and constructors,
parameter passing, recursion, BufferedReader class, Scanner class, StringTokenizer class,
inner class.
UNIT II: Inheritance – Types of Inheritance, super keyword, and preventing inheritance:
final classes and methods.
Polymorphism – Dynamic binding, method overriding, abstract classes and methods.
Interfaces- Interfaces Vs Abstract classes, defining an interface, implement interfaces,
extending interface.
Packages- Defining, creating and accessing a package, importing packages.
UNIT III: Exception handling – Concepts of exception handling, benefits of exception
handling, exception hierarchy, usage of try, catch, throw, throws and finally, checked
exceptions and unchecked exceptions, built in exceptions.
Multi threading: Differences between multi threading and multitasking, thread life cycle,
creating threads, synchronizing threads, inter thread communication.
UNIT IV: Applets – Concepts of Applets, differences between applets and applications, life
cycle of an applet, types of applets, creating applets, passing parameters to applets.
Event Handling: Events, Handling mouse and keyboard events, Adapter classes.
Files- Streams- Byte streams, Character streams, Text input/output.
UNIT V: GUI Programming with Java – AWT class hierarchy, component, container, panel,
window, frame, graphics.
AWT controls: Labels, button, text field, check box, and graphics.
Layout Manager – Layout manager types: border, grid and flow.
Swing – Introduction, limitations of AWT, Swing vs AWT.