13.07.2015 Views

OCP Java SE 6 Programmer Practice Exams (Exam 310 ... - Kitabxana

OCP Java SE 6 Programmer Practice Exams (Exam 310 ... - Kitabxana

OCP Java SE 6 Programmer Practice Exams (Exam 310 ... - Kitabxana

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

34Chapter 2: Self-Assessment Test 26. Given that the current directory is bigApp, and the following directory structure:bigApp|-- classes|-- com|-- wickedlysmart|-- BigAppMain.classAnd the code:package com.wickedlysmart;public class BigAppMain {public static void main(String[] args) {System.out.println("big app");}}Which will invoke BigAppMain? (Choose all that apply.)A. java classes/com.wickedlysmart.BigAppMainB. java classes com/wickedlysmart/BigAppMainC. java classes.com.wickedlysmart.BigAppMainD. java -cp classes com.wickedlysmart.BigAppMainE. java -cp /classes com.wickedlysmart.BigAppMainF. java -cp .:classes com.wickedlysmart.BigAppMainG. java -cp classes/com/wickedlysmart com.wickedlysmart.BigAppMain7. Given:2. class Game {3. static String s = "-";4. String s2 = "s2";5. Game(String arg) { s += arg; }6. }7. public class Go extends Game {8. Go() { super(s2); }9. { s += "i "; }10. public static void main(String[] args) {11. new Go();12. System.out.println(s);13. }14. static { s += "sb "; }15. }

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!