COMP 132 • MidtermAdvanced 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.

2399 TL

799 TL a month, 3 instalments at no extra cost

6 days until your exam

Friday 27 November

34 past exam questions with solutions
85 topic lessons · 6 h 13 min
4.0 rating
Access for the whole term

Instructor

Nursena Köprücü Aslan

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

Course introduction

What we're doing in advanced programming

Variables 1

Variables 2

Conditional Statements 1

Conditional Statements 2

Loops 1

Loops 2

Methods 1

Methods 2

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 structures: sequence, selection, iteration

Selection: if, if-else, else-if

Iteration: while

Demo: Student Class (Selection + Validation + Driver)

Structured Programming recap

For Loop

Free

For vs While

Free

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

Why Methods?

Math Class

Method Parameters & Return

Return Value

Free

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 Fundamentals: Creation, Indexing, and Core Patterns

Fill + Print (1..10)

Off-by-One Trap

Grades Stats (sum, average, max, passed)

Free

Bar Chart (stars)

Frequency Arrays and Exception Handling

Arrays of Objects and Enhanced for

Passing Arrays to Methods

Free

Multidimensional Arrays

2D Arrays in Practice: GradeBook Case Study

Varargs & Command-Line Args

Arrays Utilities

Collections: ArrayList

Insert Sorted

Merging Arrays

Min/Max Grades

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 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

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

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

Class Implementation True/False

For Loop Program Output

Free

Array Reference & Method Call

Method Overloading

Free

While Loop Track

How Many Student Objects?

Find the Errors

Constructors 1

Constructors 2

Free

Constructors 3

Constructors 4

Free

ArrayList 1

ArrayList 2

Free

ArrayList 3

Inheritance 1

Free

Inheritance 2

Inheritance 3

Free

Inheritance 4

Inheritance 5

Free

Inheritance 6

Free

Polymorphism 1

Polymorphism 2

Free

Abstract Classes and Interfaces 1

Abstract Classes and Interfaces 2

Abstract Classes and Interfaces 3

Free

Abstract Classes and Interfaces 4

Free

Abstract Classes and Interfaces 5

True / False + justify briefly

Write a class

Driver class / object creation / Scanner

Instance field vs Static field

Free

Arrays / code writing

2D arrays / short code

Control statements / output prediction

Reviews

4

1 student review

Only students who have this course can review it.

Ali Kamranli

Bought the course

Bilgisayar Mühendisliği

2 days ago

Frequently asked questions about COMP 132 Midterm

Frequently asked questions about Unicourse

2399 TL