KwickClips Java
Java: 196 short revision clips (page 2)
One idea per clip, with the answer written out underneath. Each clip links back to the full Java lesson it came from.
Why did the switch print three things?42 sec
How does a menu program work?41 sec
What stops the whole program?40 sec
Do you need 100 print lines for 1 to 100?44 sec
What are the three parts of a for loop?42 sec
How can a loop run when the condition is false?40 sec
Which loop suits printing a table 1 to 10?43 sec
Why did my loop add only once?41 sec
What does break print here?41 sec
How do you exit two loops at once?42 sec
Why is for(;;) infinite?44 sec
How many times does for (i=1; i<=9; i+=2) run?44 sec
How many prints does a 3 by 3 nested loop make?43 sec
Why does each row get one more star?40 sec
Why is 153 special?41 sec
What is a dry run?42 sec
Why use a method?42 sec
Is the return type part of the signature?41 sec
What happens if you only define a method?37 sec
Why did marks not change?40 sec
What makes a method impure?39 sec
Can two methods have the same name?42 sec
Which version runs for calc(5) when only long and double exist?42 sec
What is the main difference?41 sec
How do you find cube and cuboid volume with one name?36 sec
Who gives a new object its starting values?38 sec
Why does new Stu() give an error?41 sec
Can a class have two constructors?39 sec
Why does the field print null?40 sec
What is the first difference?39 sec
How many copies does a static variable have?40 sec
Can you call a method without an object?37 sec
Why does this not compile?40 sec
Should marks be static?44 sec
What do you get if you write no access keyword?41 sec
How do you stop a negative balance?38 sec
Why does my loop variable vanish?41 sec
Can a subclass use a private member?44 sec
Is an int an object in Java?42 sec
Does Integer obj = 45 compile?42 sec
Why is "25" + 5 equal to 255?40 sec
How do you check if a character is a digit?43 sec
Why did my string stay in small letters?39 sec
Where does indexing start?43 sec
Why is == false for two identical strings?42 sec
How do you remove extra spaces a user typed?42 sec
How do you check a palindrome?41 sec
Do forty students need forty variables?46 sec
