Saturday, August 29, 2015

OCA Java Certification

OCA Oracle Certified Associate Java SE Certification

Programmers and student programmers who would like to be certified in Java can take Oracle's certification, the OCA Java SE Certification. OCA stands for Oracle Certified Associate. Professional programmers can take the OCP Java SE Certification. OCP stands for Oracle Certified Professional.

Here's a practice exam for the OCA JAVA SE 8 PROGRAMMER CERTIFICATION:

Question 1. What is the output of this code?
1: public class A {
2: private boolean b;
3: public static void main(String[] s) {
4: A o = new A();
5: System.out.print(o.b);
Answer: _____
Question 2. Will this compile? int a = 5.6;
Answer: _____
Question 3. What line number(s) can you insert a code to make code work?
6: public class A {
7:
8: public static void main(String[] s) {
9:
10: System.out.print(a);
Answer: _____
Question 4. How many ways can you write the import statement of the class ArrayList in your code?
Answer: _____
Question 5. How many ways can you import a class that is in the same package outside the class definition?
Answer: _____
Question 6. How many package statement can a Java code have?
Answer: _____
Question 7. How do you write the import statements to use the JavaFX timer class and still import the Swing timer class to avoid naming conflict?
Answer: _____
Question 8. How do you execute a Java program in the command line to store a sentence as the first element of the main method argument?
Answer: _____
Question 9. Will this execute the program called Program? java Program.class
Answer: _____
Question 10. How many ways can you write the main method parameter inside the parenthesis disregarding any extra whitespaces?
Answer: _____

Vouloir, c'est pouvoir.

John Sindayen

No comments:

Post a Comment