
Which three are legal array declarations?
int [] myScores [];
char [] myChars;
int [6] myScores;
Dog myDogs [];
Dog myDogs [7];
A.
1, 2, 4
B.
2, 4, 5
C.
2, 3, 4
D.
All are correct.
7.
public interface Foo _x000D_
{ _x000D_
int k = 4; /* Line 3 */_x000D_
}_x000D_
Which three piece of codes are equivalent to line 3?
final int k = 4;
public int k = 4;
static int k = 4;
abstract int k = 4;
volatile int k = 4;
protected int k = 4;
A.
1, 2 and 3
B.
2, 3 and 4
C.
3, 4 and 5
D.
4, 5 and 6
8.
Which one of the following will declare an array and initialize it with five numbers?
A.
Array a = new Array(5);
B.
int [] a = {23,22,21,20,19};
C.
int a [] = new int[5];
D.
int [5] array;
9.
Which three are valid declarations of a char?
char c1 = 064770;
char c2 = ‘face’;
char c3 = 0xbeef;
char c4 = u0022;
char c5 = ‘iface’;
char c6 = ‘uface’;
A.
1, 2, 4
B.
1, 3, 6
C.
3, 5
D.
5 only
10.
Which is the valid declarations within an interface definition?
A.
public double methoda();
B.
public final double methoda();
C.
static void methoda(double d1);
D.
protected void methoda(double d1);
Do you need a similar assignment done for you from scratch? We have qualified writers to help you. We assure you an A+ quality paper that is free from plagiarism. Order now for an Amazing Discount! Use Discount Code “Newclient” for a 15% Discount!NB: We do not resell papers. Upon ordering, we do an original paper exclusively for you.
The post more-java-quizes appeared first on Essay Fount.
What Students Are Saying About Us
.......... Customer ID: 12*** | Rating: ⭐⭐⭐⭐⭐"Honestly, I was afraid to send my paper to you, but you proved you are a trustworthy service. My essay was done in less than a day, and I received a brilliant piece. I didn’t even believe it was my essay at first 🙂 Great job, thank you!"
.......... Customer ID: 11***| Rating: ⭐⭐⭐⭐⭐
"This company is the best there is. They saved me so many times, I cannot even keep count. Now I recommend it to all my friends, and none of them have complained about it. The writers here are excellent."
"Order a custom Paper on Similar Assignment at essayfount.com! No Plagiarism! Enjoy 20% Discount!"
