Discount Offer
Go Back on 1z0-808 Exam
Available in 1, 3, 6 and 12 Months Free Updates Plans
PDF: $15 $60

Test Engine: $20 $80

PDF + Engine: $25 $99



Pass exam with Dumps4free or we will provide you with three additional months of access for FREE.

1z0-808 Practice Test

Whether you're a beginner or brushing up on skills, our 1z0-808 practice exam is your key to success. Our comprehensive question bank covers all key topics, ensuring you’re fully prepared.


Page 2 out of 48 Pages

Which two statements are true for a two-dimensional array of primitive data type?


A.

 It cannot contain elements of different types.


B.

The length of each dimension must be the same.


C.

At the declaration time, the number of elements of the array in each dimension must be
specified.


D.

All methods of the class object may be invoked on the two-dimensional array.





C.
  

At the declaration time, the number of elements of the array in each dimension must be
specified.



D.
  

All methods of the class object may be invoked on the two-dimensional array.



http://stackoverflow.com/questions/12806739/is-an-array-a-primitive-type-oran-
object-or-something-else-entirely

Given the code fragment:


Which two modifications should you make so that the code compiles successfully?



A.

Option A


B.

Option B


C.

Option C


D.

Option D


E.

Option E





A.
  

Option A



C.
  

Option C



Add throws clause in both printFileContent and main


A.

Option A


B.

Option B


C.

Option C


D.

Option D


E.

Option E





A.
  

Option A



C.
  

Option C



Given:
public class MainMethod {
void main() {
System.out.println("one");
}
static void main(String args) {
System.out.println("two");
}
public static void main(String[] args) {
System.out.println("three");
}
void mina(Object[] args) {
System.out.println("four");
}
}
What is printed out when the program is excuted?


A.

one


B.

two


C.

three


D.

four





C.
  

three




A.

Option A


B.

Option B


C.

Option C


D.

Option D


E.

Option E





C.
  

Option C




Page 2 out of 48 Pages
Previous