Save
Busy. Please wait.
Log in with Clever
or

show password
Forgot Password?

Don't have an account?  Sign up 
Sign up using Clever
or

Username is available taken
show password


Make sure to remember your password. If you forget it there is no way for StudyStack to send you a reset link. You would need to create a new account.
Your email address is only used to allow you to reset your password. See our Privacy Policy and Terms of Service.


Already a StudyStack user? Log In

Reset Password
Enter the associated with your account, and we'll email you a link to reset your password.
focusNode
Didn't know it?
click below
 
Knew it?
click below
Don't Know
Remaining cards (0)
Know
0:00
Embed Code - If you would like this activity on your web page, copy the script below and paste it into your web page.

  Normal Size     Small Size show me how

SCJA-drills-chap04

QuestionAnswer
What are primitives? Primitives are the fundamental data type in Java.
What is an int? int is a primitive data type that is used to store integer values.
What is a float? float is a primitive data type that is used to store floating-point values.
What is a boolean? boolean is a primitive data type that is used to store true or false values.
What is a char? char is a primitive data type that is used to store a single Unicode character.
What are the conventions regarding primitive versus class names? Primitive data types all start with a lowercase letter, while classes start with a capital letter.
What are the wrapper classes for each primitive? Each primitive data type has a corresponding wrapper class: Integer, Float, Boolean, and Character. Note the capital letters.
What are objects in relation to primitives? Objects are more advanced data types. They may be defined by a developer or found in a built-in Java package.
How are objects initialized? Objects must be initialized by using the new keyword.
What is the use of the 'new' keyword? Objects must be initialized by using the new keyword.
Define arrays and the way they are used. Arrays are objects and allow you to store multiple variables together that can be accessed by an index.
What are enumerations? Compare enumeration and variable usage. Enumerations are special objects that allow a developer to create a predefined set of constants. A variable can then be set to only one of the predefined values.
Complete the sentence and explain what is means: Java is a _______ (hint: weight) typed language. Java is a strongly typed language. Variables must be declared as a type, and any value that is stored must be compatible with this type.
What is cast and what happens if it is not properly used? It is possible to cast a variable to a different data type. If incompatible types are cast, an exception will be thrown.
What is a literal? A literal is a value that is hardcoded in code as the value itself.
What are the Java naming conventions regarding classes? Java naming conventions dictate that a class should be named with the first letter capitalized, along with each sequential word in the name.
What are the Java naming conventions regarding variables? Java naming conventions dictate that a variable should be named with the first letter being lowercase, and with each sequential word in the name beginning with a capital.
Created by: fd99
Popular Computers sets

 

 



Voices

Use these flashcards to help memorize information. Look at the large card and try to recall what is on the other side. Then click the card to flip it. If you knew the answer, click the green Know box. Otherwise, click the red Don't know box.

When you've placed seven or more cards in the Don't know box, click "retry" to try those cards again.

If you've accidentally put the card in the wrong box, just click on the card to take it out of the box.

You can also use your keyboard to move the cards as follows:

If you are logged in to your account, this website will remember which cards you know and don't know so that they are in the same box the next time you log in.

When you need a break, try one of the other activities listed below the flashcards like Matching, Snowman, or Hungry Bug. Although it may feel like you're playing a game, your brain is still making more connections with the information to help you out.

To see how well you know the information, try the Quiz or Test activity.

Pass complete!
"Know" box contains:
Time elapsed:
Retries:
restart all cards