int num = 2;
double num2 = 4.3
double num3 = num+num2;
What does this do?
6.3
What is the syntax for a while loop?
while(True){}
int x = 8;
double y = 6.7;
int z = x + y;
Compile Error
What does super() do?
Child class calls parent class to get the parent class’ constructor value (Runs once)
The cutest person in this class?
Who is Eshan Patel
public static void main(String[] args) {} what is this?
the mandatory starting point or entry point for a Java program
What's the difference between a for() and while() loop?
Use a For loop when you know the amount of numbers you want to go to, and a while loop until a specific condition changes, regardless how many turns it takes.
What is an int?
Answer: int holds a whole number between -2,147,483,648 and 2,147,483,647.
If you call a method from an object in an array of the parent class, will it work if the method is only in the child class?
No
The unfunniest person in this class & who has the least aura (hint: twins)
Who is Victor Jiang & Victor Pan
What is a class?
A blueprint or template used to create objects in Java.
int x=10;
int y=10;
int z=10;
int a=10;
int b=343838483943483;
for (int i=9; i>0; i-–){
If (i<b && x>z){
x+=y;
y-=3949;
z-=-3445;
}
}
What is the value of x, y, z, a, and b?
x=10, y=10, z=10, a=10, b=343838483943483
int x = 9;
x = 8;
int z = 6;
x = z;
z = x;
Int y - x+z;
What is y?
12
What is the difference between inheritance and polymorphism?
Inheritance focuses on code reusability by creating a parent-child relationship between classes, while polymorphism focuses on flexibility by allowing a single interface or method call to have multiple implementations.
This is the medical term for when you sit on your couch at 2:00 AM and tell your new dating app match the entire tragic history of your childhood pet.