Search the courses, subjects, tracks, games and features, or jump straight to a page.
4 cards from this section. Quick, good the night before a test.
What is the syntax for declaring a variable in Java?
Remember the format of how variables are set up.
Name any two primitive data types in Java.
Think about simple data storage.
What is the maximum value of the byte data type?
Think of how many bits a byte represents.
In Java, final is used to create:
Consider what values should remain unchanged.
Write a Java program that defines a variable for each primitive type and outputs their values.
Make sure to include every primitive type and appropriately name variables.
Create a program that calculates the average of an array of integers and demonstrates type casting.
Remember to cast the sum to double before dividing.
5 more questions in this section. Enroll free to practise them all.
Enroll free