What is an object in Java?
An object is a distinct entity created at runtime that combines state, behavior, and identity.
Study 7 Objects and Classes with 12 free online flashcards. Review key terms, definitions, and concepts with this interactive flashcard deck.
What is an object in Java?
An object is a distinct entity created at runtime that combines state, behavior, and identity.
What is a class in Java?
A class is a blueprint and reference type that defines the data and operations its objects can have.
What three properties characterize an object?
State is an object's current information, behavior is what it can do, and identity makes it a distinct object.
What is a field?
A field is a variable declared inside a class that stores information associated with an object or the class.
How do instance and static fields differ?
An instance field has a separate value in each object; a static field has one shared value associated with the class.
What does encapsulation accomplish?
Encapsulation protects internal state by restricting direct access and exposing controlled public methods that enforce valid operations.
What is a method?
A method is a named block of code in a class that performs an action, changes state, or returns information.
What does a Java constructor do?
A constructor initializes a new object's fields. It has the class name, no return type, and runs when `new` creates the object.
What happens in `BankAccount account = new BankAccount(...);`?
`BankAccount account` declares a reference variable; `new BankAccount(...)` creates an object; `=` stores that object's reference in the variable.
What does `this` refer to in Java?
Inside an instance method or constructor, `this` refers to the current object.
What is constructor overloading?
Constructor overloading means defining multiple constructors in one class with different parameter lists.
What does `null` mean for a class-type variable?
`null` means a class-type variable refers to no object. Calling a method through it causes a `NullPointerException` at runtime.
A 14-question medium-difficulty quiz on Boolean algebra, logic gates, truth tables, and combinational circuits.
A focused set of flashcards covering Python variables, data types, expressions, control flow, functions, input, output, and common programming practices.
Learn how Boolean expressions, logical operators, and conditional structures let programs make reliable decisions, including how to handle boundaries, branch order, and testing.
Learn how computer memory stores and addresses information, how RAM and ROM differ, and how caches and the memory hierarchy balance speed, capacity, and cost.
A progressive guide to tree structure, binary-tree traversals, binary search tree operations, deletion, balancing, and the way tree height determines time and space costs.
A practical guide to integrating problem definition, data representation, modular programming, algorithms, complexity analysis, testing, correctness, and ethical evaluation into a responsible computer science capstone.
Reviews how interrupts support event handling and multitasking, and how Linux system calls use the RISC-V `ecall` instruction and register conventions.
This quiz covers process management, context switching and scheduling, multitasking, traps and interrupts, and RISC-V privilege transitions.
A quiz on operating-system system calls, including privileged-operation requests, process creation and execution with fork, exec, and waitpid, and signal handling.