Intro to Java
Loops
Variables
Inheritance
Fun
100

int num = 2;

double num2 = 4.3


double num3 = num+num2;

What does this do?

6.3

100

What is the syntax for a while loop?

 while(True){}

100

int x = 8;

double y = 6.7;

int z = x + y;

Compile Error

100

What does super() do?

Child class calls parent class to get the parent class’ constructor value (Runs once)

100

The cutest person in this class?

Who is Eshan Patel

200

public static void main(String[] args) {} what is this?

the mandatory starting point or entry point for a Java program

200

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.

200

What is an int?

Answer: int holds a whole number between -2,147,483,648 and 2,147,483,647.

200

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

200

The unfunniest person in this class & who has the least aura (hint: twins)

Who is Victor Jiang & Victor Pan

300

What is a class?

A blueprint or template used to create objects in Java.

300

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

300

int x = 9; 

x = 8; 

int z = 6;

x = z;

z = x;

Int y - x+z;

What is y?

12

300

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.

300

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.

Trauma Dumping