COMP 132 • Midterm • Advanced Programming
Bu derste Java-OOP temeline sağlam bir şekilde hakim olacaksın.
Class–object mantığı, constructor ve getters/setters gibi konular “parça parça” durmayacak; kodun içinde nasıl çalıştıklarını gerçekten anlayacaksın. Böylece sınavda “burada ne oluyor?” diye duraksamadan, daha hızlı ve daha emin ilerleyeceksin.
799 TL a month, 3 instalments at no extra cost
6 days until your exam
Friday 27 November
Instructor

Nursena Köprücü Aslan
PhD in Computer Science
Koç Üniversitesi’nde Bilgisayar Mühendisliği okudum ve aynı zamanda Matematik alanında çift anadal yaptım. Ardından Imperial College London’da Machine Learning and Artificial Intelligence alanında yüksek lisansımı tamamladım. Şu anda University of Cambridge'te doktora çalışmalarımı sürdürüyorum.
Topics
Introduction
1 topic lesson
What we're doing in advanced programming
Basics w/ Questions
8 questions
Variables 1
Variables 2
Conditional Statements 1
Conditional Statements 2
Loops 1
Loops 2
Methods 1
Methods 2
Introduction to Classes, Objects, Methods, and Strings
6 topic lessons
Java Class Design Basics: Building Your First Class Step by Step
Eclipse Demo: Build & Run Your First Account Class
Constructors to Console
Demo: Quick Run: Constructor Validation + Deposits in Console
Java Types: Defaults & Scanner
Quick Run: Types + Defaults + Scanner Trap
Control Statements
4 topic lessons
Control structures: sequence, selection, iteration
Selection: if, if-else, else-if
Iteration: while
Demo: Student Class (Selection + Validation + Driver)
Control Statements 2
10 topic lessons · 3 questions
Structured Programming recap
For Loop
For vs While
Rewrite code
Expressions in For
Example: Sum of even numbers
Example: Compound interest
Do-While Loop
Infinite loop: why it happens
EOF + Scanner.hasNext()
Switch
break vs continue
Logical operators
Methods
12 topic lessons
Why Methods?
Math Class
Method Parameters & Return
Return Value
Nested Method Calls & Local Variables
Three Ways to Call a Method
Three Ways to Return
Static vs Instance Access
Dice Simulation (Frequencies)
Scope & Shadowing
Scope in Action & Method Overloading
Method Call Stack & Stack Overflow
Arrays
4 topic lessons · 4 questions
Arrays Fundamentals: Creation, Indexing, and Core Patterns
Fill + Print (1..10)
Off-by-One Trap
Grades Stats (sum, average, max, passed)
Bar Chart (stars)
Frequency Arrays and Exception Handling
Arrays of Objects and Enhanced for
Passing Arrays to Methods
Arrays 2
5 topic lessons · 3 questions
Multidimensional Arrays
2D Arrays in Practice: GradeBook Case Study
Varargs & Command-Line Args
Arrays Utilities
Collections: ArrayList
Insert Sorted
Merging Arrays
Min/Max Grades
Classes & Objects: A Deeper Look
8 topic lessons
Encapsulation, Validation (Exceptions) and private Access
this
Constructors, Overloading and Composition
static (Class Variables/Methods), static import, and final Constants
Enum Types and EnumSet
Garbage Collection and Resource Leaks
Source Files, Multiple Classes, and Package Access
BigDecimal for Money: Precision, Rounding, setScale, and NumberFormat
Inheritance
9 topic lessons
Inheritance Foundations
Single Inheritance
What Can a Subclass Access?
Overriding
Constructors in Inheritance and Overriding
The Copy Paste Problem
Protected/Private in Subclass/Superclass
Constructor Chain & The Object Class
Inheritance vs. Composition
Polymorphism and Interfaces
12 topic lessons
What is Polymorphism?
Dynamic Binding and Extensibility
Abstract Class
Interface
Polymorphism with Interface
Interface vs. Abstract Class
Java 8: Default and Static Interface Methods
Functional Interface, SAM and Private Methods
Implementation vs Interface Inheritance
Composition + Interface
Private Constructor and Factory Method
Summary
Collections
14 topic lessons
Collections
Type-Wrapper Classes and Autoboxing
ArrayList and Collection Interface
Iterator
LinkedList and ListIterator
Collections Utility Methods
Custom Comparator
Collection Methods: reverse, fill, copy, min, max
Collections Methods: binarySearch, addAll, frequency, disjoint
PriorityQueue and Queue Interface
Sets: HashSet and TreeSet
Maps: HashMap and TreeMap
Synchronized and Unmodifiable Collections
Java 9: Immutable Collection Factory Methods
Quiz
7 questions
Class Implementation True/False
For Loop Program Output
Array Reference & Method Call
Method Overloading
While Loop Track
How Many Student Objects?
Find the Errors
Past Midterm Questions
20 questions
Constructors 1
Constructors 2
Constructors 3
Constructors 4
ArrayList 1
ArrayList 2
ArrayList 3
Inheritance 1
Inheritance 2
Inheritance 3
Inheritance 4
Inheritance 5
Inheritance 6
Polymorphism 1
Polymorphism 2
Abstract Classes and Interfaces 1
Abstract Classes and Interfaces 2
Abstract Classes and Interfaces 3
Abstract Classes and Interfaces 4
Abstract Classes and Interfaces 5
Past Midterm Questions II
7 questions
True / False + justify briefly
Write a class
Driver class / object creation / Scanner
Instance field vs Static field
Arrays / code writing
2D arrays / short code
Control statements / output prediction
Reviews
1 student review
Only students who have this course can review it.
Ali Kamranli
Bought the courseBilgisayar Mühendisliği