In life, NO ONE and NOTHING will help you until you start helping YOURSELF.
--Your friends at LectureNotes

Note for Object Oriented Programming Using JAVA - OOPJ By Jasaswi Prasad Mohanty

  • Object Oriented Programming Using JAVA - OOPJ
  • Note
  • Silicon Institute of Technology - SIT
  • Computer Science Engineering
  • 124 Offline Downloads
  • Uploaded 1 year ago
Jasaswi Prasad Mohanty
Jasaswi Prasad Mohanty
0 User(s)
Download PDFOrder Printed Copy

Share it with your friends

Leave your Comments

Text from page-1

Class Note of OBJECT ORIENTED PROGRAMMING USING JAVA Course Code: PCS3I102 Prepared by Jasaswi Prasad Mohanty Department of Computer Science & Engineering Silicon Institute of Technology Bhubaneswar

Text from page-2

Course Topics: Chapter 1-: An introduction to programming. Different types of programming languages, Description of Compiler and Interpreter, Advantages of Object Oriented Programming, Features of Object Oriented Programming. Chapter 2-: Introduction to Java. What is Java?, Why Java?, History behind Java, Different versions of Java, Difference between C/C++ and Java, Features of Java, First Java Program, Prerequisites Before start writing a java program, Writing the program, Compiling Module the program, How Java program compiles?, Executing the program, How Java I program executes?, What is JVM and its significance in executing a program?, Architecture of JVM. Chapter 3-: Understanding First Program and a step forward, Understanding every term of the program, Java Tokens, Datatypes, Operators, What are Operators?, Different types of Operators, Typecasting, Control Structures and Arrays, Different types of control structures, Conditional Statements, Loops/ Iterators, Jumping Statements, Java Arrays, Multidimensional Arrays, Taking Input from keyboard, Command Line Arguments, Using Scanner Class, Using Buffered Reader class. Chapter 1-: Introduction to Classes and Objects. Classes, Methods, Objects, Description of data hiding and data encapsulation, Constructors, Use of static Keyword in Java, Use of this Keyword in Java, Array of Objects, Concept of Access Modifiers (Public, Private, Protected, Default). Chapter 2-: Inheritance Understanding Inheritance, Types of Inheritance and Java supported Inheritance, Significance of Inheritance, Constructor call in Inheritance, Use of super keyword in Java, Polymorphism, Understanding Polymorphism, Types of polymorphism, Significance of Polymorphism in Java, Method Overloading, Constructor Overloading, Method Overriding, Dynamic Method Dispatching. Chapter 3-: String Manipulations. Introduction to different classes, String class, String Buffer, String Builder, String Tokenizer, Concept of Wrapper Classes, Introduction to wrapper classes, Different predefined wrapper classes, Predefined Constructors for the wrapper classes. Conversion of types from one type (Object) to another type (Primitive) and Vice versa, Concept of Auto boxing and unboxing. Module Chapter 4:- Data Abstraction II Basics of Data Abstraction, Understanding Abstract classes, Understanding Interfaces, Multiple Inheritance Using Interfaces, Packages, Introduction to Packages, Java API Packages, User-Defined Packages, Accessing Packages, Error and Exception Handling, Introduction to error and exception, Types of exceptions and difference between the types, Runtime Stack Mechanism, Hierarchy of Exception classes, Default exception handling in Java, User defined/Customized Exception Handling, Understanding different keywords (try, catch, finally, throw, throws), User defined exception classes, Commonly used Exceptions and their details. Chapter 5:- Multithreading Introduction of Multithreading/Multitasking, Ways to define a Thread in Java, Thread naming and Priorities, Thread execution prevention methods. (yield(), join(), sleep()), Concept of Synchronisation, Inter Thread Communication, Basics of Deadlock, Demon Thread, Improvement in Multithreading, Inner Classes, Introduction, Member inner class, Static inner class, Local inner class, Anonymous inner class. JAVA/JPM Page 2

Text from page-3

Module III Module IV Chapter 1:- IO Streams (java.io package) Introduction, Byte Stream and Character Stream, Files and Random Access Files, Serialization, Collection Frame Work (java.util), Introduction, Util Package interfaces, List, Set, Map etc, List interfaces and its classes, Setter interfaces and its classes. Chapter 2:-Applet Introduction, Life Cycle of an Applet, GUI with an Applet, Abstract Window Toolkit (AWT), Introduction to GUI, Description of Components and Containers, Component/Container hierarchy, Understanding different Components/Container classes and their constructors, Event Handling, Different mechanisms of Event Handling, Listener Interfaces, Adapter classes. Chapter 1:- Swing (JFC) Introduction Diff b/w awt and swing, Components Hierarchy, Panes, Individual Swings Components JLabel, JButton, JTextField, JTextArea. Chapter 2:-JavaFX Introduction to JavaFX, Need of JavaFX, Features of JavaFX, Simple JavaFX Application Books: 1. JAVA Complete Reference (9th Edition), Herbalt Schelidt. 2. Core JAVA – An Integrated Approach, Dr. R. Nageswara Rao Web Resources: 1. For Java Tutorial: https://www.javatpoint.com/history-of-java 2. For Java API: http://docs.oracle.com/javase/7/docs/api/ 3. https://docs.oracle.com/javase/8/javase-clienttechnologies.htm JAVA/JPM Page 3

Text from page-4

Scope & Objective:  This course teaches students how to develop Java applications.  Topics covered include: o Java programming language syntax o OO programming using Java o Exception handling o IO o Threads o Collection classes o Networking o Applet and JavaFX  Students will develop and test Java applications (typically) using Eclipse. This course is a pre-requisite to all Application Server courses, and especially Java Technology courses such as Struts, Spring, and Hibernate. Pre-Requisite:  Knowledge of any one programming language - preferably C  Knowledge of Data Structure.  Some familiarity with Object Oriented Programming is desired but not required. Outcome: Upon completion of this course, students will be able to: 1. Design, develop and debug programs in Java using decision making and looping to get familiar with java environment. 2. Design, implement, test, debug, and document programs that use concepts of data abstraction & data hiding, class & object, inheritance & polymorphism, and interfaces. 3. Develop concurrent and robust application using multithreading & exception handling, inner & wrapper classes and generics. 4. Understand the concept of IO, file system and collection to design and develop the solution for real world problem. 5. Comprehend and apply GUI features of java such as APPLET, AWT, and event handling. 6. Use MVC architecture and develop platform independent GUI application using Swing and JavaFX that helps in lifelong learning skill. JAVA/JPM Page 4

Lecture Notes