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

SCJP #1

Chapter 1

QuestionAnswer
What 3 things can legal Java identifiers start with? underscore, letter, currency character
Legal Java identifiers can contain... (4) letter, underscore, currency character, number
Java Identifiers are case sensitive. True/False True
Name two things a legal Java identifier cannot use? 1) cannot start with a number 2) cannot use a Java keyword/reserved word
In Java Coding Standards, a class or interface name should be... (3) 1) first character uppercase 2) camelCase 3) should typically be a noun.
In Java Coding Standards, a method name should be... (3) 1) first character lowercase 2) camelCase 3) should typically be a noun-verb pair.
In Java Coding Standards, a variable name should be... (3) 1) first character lowercase 2) camelCase 3) should be a short meaningful noun.
In Java Coding Standards, a constant should be... (4) 1) static 2) final 3) upercase characters 4) underscore character separates words
In JavaBeans standards, a setter method should be... (4) 1) "set" followed by property name 2) public 3) takes argument whose type is same as the property 4) void return type
In JavaBeans standards, a getter method should be... (4) 1) "get" followed by property name 2) public 3) takes no argumentsos 4) return type matches property type.
What are JavaBean Listener naming rules? (3) 1) to register listener: lowercase "add", then listener type, then "Listener" 2) to remove a listener: lowercase "remove", then listener type, then the word "Listener" 3) the type of Listener (add or remove) must be paased to method as an argument
Name Java access modifiers (3) public, private, protected
What are the Java access controls (4) public, private, protected, default
A class can have what access modifiers public and default
Class access means you can... (3) 1) create an instance of the class 2) extend the class 3) access the accessable methods and variables in the class
What non-access modifiers can a class have? (3) final, abstract, strictfp
What does it mean when a class or method is marked strictfp Any method or method code in the class conforms to IEEE 754 standards for floating points (behavior is not platform specific)
Final keyword means: (3) 1) class cannot be subclassed 2) method cannot be overridden 3) variable cannot be assigned
Abstract classes can never be: instantiated
Methods marked abstract end in: a semi-colon
If one method in a class is abstract: the whole class must be marked abstract.
If a class is abstract, it cannot be: final
If a class is final, it cannot be: abstract
An interface is a contract. True/False True
An interface is a 100% _____ class. abstract
Interfaces can be implemented by... any class from any inheritance tree.
Interfaces are implicitly: public and abstract, whether declared or not.
Interface variables must be declared as: (3) public, static, final
Interface modifiers cannot be: (4) static, final, strictfp, native
Interfaces can extend: 1 or more interfaces.
Interfaces cannot extend anything other than an interface.
Interfaces cannot implement another interface or class.
An interface declaration must contain the keyword "interface"
Interface types cannot be used polymorphically. True/False False
Created by: drema
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