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

Objects and Classes

ENGR 131 test review

QuestionAnswer
Constructs that define objects of the same type Classes
Objects have both a ____ and a _____. State (defines object), behavior (defines what the object does).
Special kind of methods that are invoked to construct objects. Constructors
Constructor with no parameters is called a No-arg constructor
Return type of constructors? None; constructors do not have a return type, not even void.
Role of constructor Initialize objects
No-arg constructor with an empty body that's automatically provided if no constructors are explicitly declared in the class . Default Constructor
If a data field of a reference type does not reference any object, it has this value. Null
Default value for a reference type Null
Default value for a numeric type 0
Default value for a boolean type False
Default Value for a char type '\u0000'
Default value for a local variable inside a method None; Java doesn't assign one.
Object that is no longer referenced and is cleaned up by JVM Garbage
How to access date class java.util.date, use .toString method to return the date and time as a string.
How to use Random class java.util.Random Random random1 = new Random(3) where 3 is the seed random1.nextInt(1000) generates a random number up to 1000
Variables that belong to a specific instance Instance variables
Methods invoked by an instance of the class Instance methods
Variables shared by all instances of the class Static variables
Methods not tied to a specific object Static methods
Final variables shared by all the instances of the class Static constants
Class, data, or method is visible to any class in any package public
The data or methods can be accessed only by the declaring class. Private
Created by: 1029916386
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