20:00

Free Test
/ 10

Quiz

1/10
Given the following method from the java.util.Arrays Method Summary: static void sort(long[] a) And given, 1. public class Sorter{ 2. public static void main(String []args){ 3. int[] a = {3,1,22,5,11,2}; 4. sort(a); 5. } 6. } Which of the following will make this code works?
Select the answer
1 correct answer
A.
By adding the import statements “import static java.util.Arrays.sort;”
B.
By adding the import statement “static import java.util.Arrays.*;”
C.
By adding the import statement “import java.util.Arrays.*;”
D.
By adding the import statement “import java.util.Arrays.sort;”
E.
By adding the import statement “import static java.util.*;”

Quiz

2/10
Which is of the following can appear before the package statements in a java file?
Select the answer
1 correct answer
A.
Comments.
B.
Another package statement.
C.
Class statements and/or comments
D.
Lambda expression.
E.
Any of above

Quiz

3/10
Which is/are true? I. Scope of a local variable is lesser than scope of an instance variable. II. The instance variables are only visible to the methods in which they are declared. III. The variable “i” in the declaration “int i = 12” should be an instance variable.
Select the answer
1 correct answer
A.
Only I.
B.
Only II.
C.
Only I and II.
D.
Only I and III.
E.
None

Quiz

4/10
Consider following directory structure. (Assume that current directory is same directory where “com” is located. com - - -| |- Abc.class |- -foo - -| |- One.class |- Two.class |- bar - -| |- Test.class Now consider the following import statement; import com.*; Which of the following set shows the set of the classes which will be imported when used above statement?
Select the answer
1 correct answer
A.
Abc, One, Two, Test
B.
One, Two, Test
C.
One, Two
D.
Abc, One, Two
E.
None of above.

Quiz

5/10
Given 1. public class Program{ 2. public static void main(int []i){ 3. System.out.print("AB"); 4. } 5. public static void main(String... c){ 6. System.out.print("BC"); 7. } 8. public static void main(String [][]c){ 9. System.out.print("CD"); 10. } 11. } What is the result?
Select the answer
1 correct answer
A.
AB
B.
BC
C.
CD
D.
An Error is thrown at the runtime, stating that, Main method not found in class Pro.
E.
Compilation fails.

Quiz

6/10
Given 1. public class Program{ 2. 3. static int x = 11; 4. private int y = 33; 5. 6. public static void main(String args[]){ 7. Program pro = new Program(); 8. pro.method(5); 9. System.out.print(Program.x); 10. System.out.print(" " + pro.x); 11. System.out.print(" " + pro.y); 12. } 13. 14. public void method(int x){ 15. x = 10; 16. y = 12; 17. } 18. } What is the result?
Select the answer
1 correct answer
A.
10 10 33
B.
11 11 33
C.
11 11 12
D.
11 22 12
E.
Compilation fails.

Quiz

7/10
Given 1. public class Program{ 2. static int x = 2; 3. public final static void main(String[] a){ 4. int []a = new int[x]; 5. a[2] = 2; 6. for (int i:a) 7. System.out.print(i); 8. } 9. } What is the result?
Select the answer
1 correct answer
A.
0 2
B.
2
C.
An exception is thrown.
D.
Compilation fails.
E.
None of above.

Quiz

8/10
Which of the following lines will compile without warning or error?
Select the answer
1 correct answer
A.
float f=1.3;
B.
char ch="a";
C.
boolean b=0;
D.
int y = 2.3;
E.
char c=65;

Quiz

9/10
Given 1. public class Program{ 2. static int x = 20; 3. public static void main(String args[]){ 4. Program pr = new Program(); 5. pr.x = 5; 6. int y = x/pr.x; 7. System.out.print("y ="); 8. System.out.print(); 9. System.out.print(y); 10. } 11. } What will be the result?
Select the answer
1 correct answer
A.
y = 1
B.
y = 2
C.
y = 3
D.
Compilation fails due to an error on line 6.
E.
Compilation fails due to an error on line 8.

Quiz

10/10
Given 1. public class Program{ 2. static int x = 20; 3. public static void main(String args[]){ 4. Program pr = new Program(); 5. pr.x = 5; 6. int y = x/pr.x; 7. System.out.print("y = "); 8. System.out.print(y); 9. } 10. } What will be the result?
Select the answer
1 correct answer
A.
y = 4
B.
y = 2
C.
y = 1
D.
Compilation fails due to an error on line 6.
E.
Compilation fails due to an error on line 8.
Looking for more questions?Buy now

Oracle-1z0-808 Practice test unlocks all online simulator questions

Thank you for choosing the free version of the Oracle-1z0-808 practice test! Further deepen your knowledge on Oracle Simulator; by unlocking the full version of our Oracle-1z0-808 Simulator you will be able to take tests with over 431 constantly updated questions and easily pass your exam. 98% of people pass the exam in the first attempt after preparing with our 431 questions.

BUY NOW

What to expect from our Oracle-1z0-808 practice tests and how to prepare for any exam?

The Oracle-1z0-808 Simulator Practice Tests are part of the Oracle Database and are the best way to prepare for any Oracle-1z0-808 exam. The Oracle-1z0-808 practice tests consist of 431 questions and are written by experts to help you and prepare you to pass the exam on the first attempt. The Oracle-1z0-808 database includes questions from previous and other exams, which means you will be able to practice simulating past and future questions. Preparation with Oracle-1z0-808 Simulator will also give you an idea of the time it will take to complete each section of the Oracle-1z0-808 practice test . It is important to note that the Oracle-1z0-808 Simulator does not replace the classic Oracle-1z0-808 study guides; however, the Simulator provides valuable insights into what to expect and how much work needs to be done to prepare for the Oracle-1z0-808 exam.

BUY NOW

Oracle-1z0-808 Practice test therefore represents an excellent tool to prepare for the actual exam together with our Oracle practice test . Our Oracle-1z0-808 Simulator will help you assess your level of preparation and understand your strengths and weaknesses. Below you can read all the quizzes you will find in our Oracle-1z0-808 Simulator and how our unique Oracle-1z0-808 Database made up of real questions:

Info quiz:

  • Quiz name:Oracle-1z0-808
  • Total number of questions:431
  • Number of questions for the test:50
  • Pass score:80%

You can prepare for the Oracle-1z0-808 exams with our mobile app. It is very easy to use and even works offline in case of network failure, with all the functions you need to study and practice with our Oracle-1z0-808 Simulator.

Use our Mobile App, available for both Android and iOS devices, with our Oracle-1z0-808 Simulator . You can use it anywhere and always remember that our mobile app is free and available on all stores.

Our Mobile App contains all Oracle-1z0-808 practice tests which consist of 431 questions and also provide study material to pass the final Oracle-1z0-808 exam with guaranteed success. Our Oracle-1z0-808 database contain hundreds of questions and Oracle Tests related to Oracle-1z0-808 Exam. This way you can practice anywhere you want, even offline without the internet.

BUY NOW