CS 349 Java Final Exam

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

1/31

flashcard set

Earn XP

Description and Tags

These flashcards cover essential Java programming concepts and components relevant for the final exam.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

32 Terms

1
New cards

Encapsulation

Hiding internal details and showing only functionalities.

2
New cards

Inheritance

Mechanism where one class acquires properties of another.

3
New cards

Polymorphism

Ability of an object to take on many forms.

4
New cards

Abstraction

Hiding complex implementation details and showing only essentials.

5
New cards

executeUpdate()

Executes SQL commands like INSERT, UPDATE, DELETE.

6
New cards

executeQuery()

Executes SQL SELECT queries and returns ResultSet.

7
New cards

Event Handling Steps

Create Event Source -> Create Listener -> Register Listener.

8
New cards

ActionListener Interface

Responds to action events like button clicks; uses actionPerformed().

9
New cards

Button Creation

Button b = new Button("Click Me");

10
New cards

TextField Retrieval

Use tf.getText() to get input from a text field.

11
New cards

Method Overloading

Same method name but different parameters.

12
New cards

Method Overriding

Child class redefines a parent method with same signature.

13
New cards

Constructor Rules

No return type; name must match class.

14
New cards

Object Class Methods

Includes toString(), equals(), hashCode(), clone().

15
New cards

Interfaces in Java

Contain only public, abstract methods and public static final fields.

16
New cards

Implementing an Interface

Use 'implements' keyword in class declaration.

17
New cards

UML Class Diagram

Top: Class Name; Middle: Fields; Bottom: Methods.

18
New cards

UML Inheritance

Solid line and hollow arrow pointing to parent class.

19
New cards

Native Apps

Built specifically for Android/iOS platforms.

20
New cards

Web Apps

Accessed through a browser, not installed.

21
New cards

Hybrid Apps

Combination of native and web technologies.

22
New cards

RelativeLayout

Widgets positioned relative to others using IDs.

23
New cards

FrameLayout

Stacks multiple views on top of each other.

24
New cards

Good Layout Practice

Minimize layout depth for better performance.

25
New cards

Android Modes

Design Mode, Code Mode, Split Mode.

26
New cards

onCreate() Method

Initializes activity; sets content view.

27
New cards

setContentView()

Loads XML layout into an activity.

28
New cards

MVC Pattern in Android

Model: Data, View: UI Layouts, Controller: Activity logic.

29
New cards

Activity Component

Screen with a user interface.

30
New cards

Service Component

Runs background operations with no UI.

31
New cards

Broadcast Receiver

Listens for system-wide broadcast messages.

32
New cards

Content Provider

Shares data between apps, e.g., contacts.