(Java) Basics
A container that holds data
What is a variable?
This string method returns the number of characters in a string.
What is length()?
The two types of loops we've covered in the course
What is for loops and while loops?
Methods are defined inside a ______________, and cannot be defined outside of it.
What is a class?
This is what AI stands for.
What is Artificial Intelligence?
This data type only has two possible values.
What is a boolean?
This keyword allows us to check a condition and execute a block of code based on that condition.
What is if?
This type of loop in Java is best used when the number of iterations is known in advance.
What is a for loop?
While parameters are placeholders defined in a method, the actual values passed into the method are called ______________.
What are arguments?
This is what malware is short for.
What is malicious software?
One of these symbols is an assignment operator, while two of them together is a comparison operator.
What is the equals sign? (= is to assign a variable a value, == is comparing two values)
This method allows us to check if two strings contain the same word.
What is equals()?
This collection of items is similar to an array, but does not have a fixed size.
What is an ArrayList?
______________ allows you to define multiple methods with the same name, but with different parameters.
What is method overloading?
This stage of the Software Development Life Cycle focuses on fixing bugs and verifying functionality.
What is testing?
This logical operator combines two boolean expressions and returns true if both are true.
This is the result of "pineapple".indexOf("e")
What is 3?
This happens when a loop's condition is never false, causing it to run forever.
What is an infinite loop?
This keyword is used inside a method, to give back a value to the caller of that method.
What is return?
CPU, GPU, Motherboard, RAM are all examples of this (2 words).
What is hardware?
This term refers to the concept of converting one data type to another. There are two types, wide and narrow.
This is the result of the following code:
String str = "Java Programming";
if (str.charAt(6) == 'R') {
System.out.println("Yes");
} else {
System.out.println("No");
}
What is No?
This is how you access the last element in an array with 10 elements using its index.
What is array[9]?
These are the three parts of a method declaration.
What is the return type, the method name, and the parameter list?
The concept of splitting a problem into smaller subproblems, solving them independently, and then combining the solutions.
What is divide and conquer?