Object Oriented Programming in Java (CACS204) is a 3-credit subject in BCA 3rd Semester at Tribhuvan University. Below you'll find notes, old question papers, and lab reports aligned with the TU BCA curriculum.
Course Code: CACS204 | Credits: 3 | Semester: 3 | Curriculum: BCA Curriculum 2018
OOP concepts using Java: classes, objects, inheritance, polymorphism, encapsulation, and abstraction.
Definition, History of Java, The Internet and Java's Place of IT, Applications and Applets, Java Virtual Machine, Byte Code-not an Executable code, Procedure Oriented vs. Object-Oriented Programming, Compiling and Running a Simple Program, Setting up your Computer for Java Environment, Writing a program, Compiling, Interpreting and Running the Program, Handling Common Errors.
Primitive Data Types: Integers, Floating-Point types, Characters, Booleans; User Defined Data Types, Declarations, Constants, Identifiers, Literals, Type Conversion and Casting, Variables: Variable Definition and Assignment, Default Variable Initializations; Command-Line Arguments, Arrays of Primitive Data Types, Comment Syntax, Garbage Collection, Expressions, Using Operators: Arithmetic, Bitwise, Relational, Logical, Assignment, Conditional, Shift, Ternary, Auto-increment and Auto-decrement, Using Control Statements(Branching: if, switch; Looping: while, do-while, for; Jumping statements: break, continue and return)
Fundamentals of Classes: A Simple Class, Creating Class Instances, Adding methods to a class, Calling Functions/Methods, Abstraction, Encapsulation, Using 'this' Keyword, Constructors, Default constructors, More on methods: Passing by Value,by Reference, Access Control, Methods that Return Values, Polymorphism and Method Overloading, Recursion; Nested and Inner Classes
Inheritance: Using 'extends' keyword, Subclasses and Superclasses, 'super' keyword usage. Overriding Methods, Dynamic Method Dispatch; The Object class, Abstract and Final Classes, Package: Access Control; Interfaces: Defining an Interface, Implementing and applying interfaces.
Creation, Concatenation and Conversion of a String, Changing Case, Character Extraction, String Comparision, Searching Strings, Modifying Strings, String Buffer.
Create/Instantiate/Start New Threads: Extending java.lang.Thread, Implementingbjava.lang.Runnable Interface; Understand Thread Execution, Thread Priorities, Synchronization, Inter-Thread Communication, Deadlock.
java.io package, Files and directories, Streams and Character Streams; Reading/Writing Console Input/Output, Reading and Writing files, The Serialization Interface, Serialization & Deserialization.
Arrays And Collection Classes/Interfaces, Map/List/Set Implementations: Map Interface, List Interface, Set Interface, Collection Classes: Array List, Linked List, Hash Set and Tree Set, Accessing Collections/Use of An Iterator, Comparator.
About AWT & Swing, About JFrame (a top level window in Swing), Swing components (JLabel, About text component like JTextField, JButton, Event Handling in Swing Applications, Layout Management using FlowLayout, Border Layout, Grid Layout, Using JPanel, Choice components like JCheck Box, JRadio Button, Borders components, JCombo Box & its events, JList & its events with MVC patterns, Key & Mouse Event Handling, Menus in swing, JText Area, Dialog boxes in swing, JTable for Displaying Data in Tabular form, MDI using JDesktop Pane & JInternal Frame, Using IDE like Netbeans, JBuilder for building java applications using Drag & Drop), Adapter classes.
Definition, Applet lifecycle methods, Build a simple applet, Using Applet Viewer, Adding Controls: Animation Concepts.
Using Connection, Statement & Result Set Interfaces for Manipulating Data with the Databases.
Laboratory works should be done covering all the topics listed above and a small project work should be carried out using the concept learnt in this course. Project should be assigned on Individual Basis.