Bryant

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/46

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

47 Terms

1
New cards

What is an abstract class?

A class that cannot instantiate (create objects from class) but provides a base class with shared attributes and methods.

2
New cards

Define abstraction in programming.

Separating implementation from use, reducing complexity by hiding implementation details.

3
New cards

What is an abstract method?

A method without a body.

4
New cards

What is an accessor/getter?

A method that accesses fields to get value but does not modify a class field.

5
New cards

What is an actual parameter?

Value passed through the parameter when it is called.

6
New cards

Define aggregation in Object-Oriented Programming.

A ‘has-a’ relationship between two classes where a class contains a reference to another class.

7
New cards

What is an ArrayList?

A resizable array allowing storage and manipulation of a list of objects.

8
New cards

What is a binary search?

An algorithm that begins at the midpoint of a range and halves the range after each guess.

9
New cards

What is the purpose of a catch block?

It handles/catches exceptions.

10
New cards

Define checked exception.

Exceptions that are checked at compile time.

11
New cards

What is a concrete class?

A class that can be instantiated directly.

12
New cards

What does a constructor do?

Involved in creating an object using the new keyword.

13
New cards

Explain constructor chaining.

Calling one constructor from another constructor.

14
New cards

What is deep copy?

Stores copies of an object's value.

15
New cards

What does the equals() method do?

Compares strings and returns true if they are equal.

16
New cards

Define encapsulation.

Information hiding & making properties private, defining getters and setters.

17
New cards

What is event-driven programming?

The flow of the program is determined by events.

18
New cards

What is explicit casting?

Manual type casting that forces conversion of a larger data type to a smaller data type.

19
New cards

What is a finally clause?

A block of code used with try-catch to ensure execution regardless of exceptions.

20
New cards

Define instance in programming.

An object created from a class.

21
New cards

What is an interface?

It declares methods that a class must implement but does not provide method bodies.

22
New cards

What is garbage collection?

JVM reclaims memory that is no longer used, helping to prevent memory leaks.

23
New cards

What is a for loop?

A loop with predefined beginning, end, and increment.

24
New cards

Define immutability in programming.

An object whose state cannot be changed after it is created.

25
New cards

What is shallow copy?

Stores the references of the object to the original memory addresses.

26
New cards

What does it mean for a variable to be static?

Shared by all instances of a class and can be accessed without instantiation of its class.

27
New cards

What are properties in programming?

Fields plus getters and setters.

28
New cards

Define polymorphism.

The ability of an object to take on many forms, allowing objects of different classes to be treated as objects of a common type.

29
New cards

What is a mutator/setter?

A method used to modify encapsulated data fields.

30
New cards

What is method abstraction?

Hiding implementation details of a method while only showing functionality.

31
New cards

Explain how SDK is utilized.

A software development kit provides the tools and libraries needed for developing applications.

32
New cards

What is autoboxing?

The automatic conversion of primitive data types to their corresponding wrapper classes.

33
New cards

What does the term 'scope' refer to?

The region of code where a declared name is valid.

34
New cards

Define the term 'runtime stack.'

A memory area that stores activation records at runtime in a last-in, first-out fashion.

35
New cards

What does the term 'void' indicate in a method?

It indicates that the method does not return any value.

36
New cards

What does the 'this()' reference mean?

It refers to an object whose method or constructor is being called.

37
New cards

What is the significance of method signatures?

It specifies the method name and parameter list.

38
New cards

What is the difference between equals() and == in Java?

equals() compares values or contents of objects, while == compares references in memory.

39
New cards

Define object in programming.

A grouping of data (variables) and operations that can be performed on that data (methods).

40
New cards

What are access modifiers?

Keywords that control the visibility of classes, methods, and variables.

41
New cards

What is a test vector?

A unique set of input values for testing.

42
New cards

What does 'pass-by-value' mean?

Invokes a method with a parameter where the value of the argument is passed to the parameter.

43
New cards

Define 'primitive types.'

Built-in immutable data types, including byte, short, int, long, float, double, char, and boolean.

44
New cards

What characterizes procedural programming?

A programming style that uses a series of steps to define how a computer program behaves.

45
New cards

What is the role of a default constructor?

It is called without any arguments to create an object.

46
New cards

What does the 'return statement' do?

It is used to exit a method and optionally return a value to the caller.

47
New cards

What is UML?

Unified Modeling Language, an illustration of class templates and objects.