Search the courses, subjects, tracks, games and features, or jump straight to a page.
3 cards from this section. Quick, good the night before a test.
What are the four primitive data types in Java?
Think about integer values.
What data type is used to store text in Java?
It's a sequence of characters.
Which of the following is a primitive data type?
Think about the basic data types.
True or False: All non-primitive types are defined by the user.
Consider how different types are created in Java.
Define a class named 'Car' with attributes for model, year, and price. Initialize an instance of the Car class.
Consider how to structure your class and instantiate it.
Given an integer array, write a function that returns the sum of all elements.
Think about loops and how you can access array elements.
5 more questions in this section. Enroll free to practise them all.
Enroll free