MODULE 1: Intro to OOP Flashcards
Is about writing procedures or methods that perform operations on the data
Procedural programming
About creating objects that contain both data and methods
Object-oriented programming
OOP helps to keep the Java cod “DRY” and makes the code easier to maintain, modify and debug
Don’t Repeat Yourself
What are the two main aspects of object-oriented programming
Classes and Objects
How does Java works?
- Source
- Compiler
- Output (code)
- Virtual Machine
You can run your document through this
Source code compiler
The compiler creates a new document, coded into a Java ___________
bytecode
What reads and runs the bytecode?
Virtual machine
When a Java file has a public class, the name of the public class _______
must be the same as the name of the file
After it displays the message, it advances the cursor to the beginning if the next line
println method
Does not advance the c on the cursor on next line after displaying the message
print method
In java, an _____ is created from a class
Object