JavaDeploy
SiteMap
Java Certification
Java Beans
Java-OO Concepts
Declaring Methods
«Prev
Next»
Java Certification
Java Fundamentals
Source Files Compilation
Declare import Packages
Java main method
Identifiers Keywords
Primitive Types
Literal Values
Automatic Initialization
language-fundamentals-conclusion
Classes Objects
Object Oriented Programming
Class Interface Declarations
Subclasses Superclasses
Class Constructor Syntax
Types Of Nested Classes
Interface Use Declaration
Inner Class
Local Inner Classes
Anonymous Inner Class
Classes Objects - Conclusion
Anonymous Class - Quiz
Java Operators
Operator Summary
Logical Operators
Numeric Conversions
Casting Numeric Types
Java Casting - Quiz
Equality Testing
Assignment Operators
Order Of Evaluation.
Operator Conclusion
Declaring Java Methods
Declaring Variables
122
Exception Handling
Program Statements
Decision Making Code
for, while, do Loops
Java Break Statement
Throw Statement
try catch Block
Garbage Collection
Java Finalization
Java Statements Conclusion
Java Threading Model
Multithreading Theory
Starting Threads
Thread States
Ready to Running State
Waiting Dying Threads
Synchronized Shared Objects
Synchronization Concepts -Quiz
Waiting Notifying Threads
Preventing Thread Execution
Threading Model Conclusion
Java Array Declarations - Quiz
Each question is worth one point. Select the best answer or answers for each question.
1.
Which array declarations are equivalent to the following?
String[][] s;
Please select all the correct answers.
A.
String[]s[];
B.
String s[][];
C.
String[][s];
D.
String [ ] [ ] s;
2.
What is the value of
a[1]
as the result of the following array declaration?
int [] a = {1,2,3,4,5};
Please select all the correct answers.
A.
0
B.
1
C.
2
D.
null
3.
Which of the following statements about declaring variables, arrays, and classes are true?
Please select all the correct answers.
A.
A field variable may be declared final.
B.
A local variable may be declared final.
C.
An array may be declared final.
D.
A class may be declared final.