Test your basic knowledge |

Oracle Sun Certified Java Programmer

Instructions:
  • Answer 50 questions in 15 minutes.
  • If you are not ready to take this test, you can study here.
  • Match each statement with the correct term.
  • Don't refresh. All questions and answers are randomly picked and ordered every time you load a test.

This is a study tool. The 3 wrong answers for each question are randomly chosen from answers to other questions. So, you might find at times the answers obvious, but you will see it re-enforces your understanding as you take the test each time.
1. Which of the three non-access modifiers (strictfp - final - abstract) can and can't be used together in a class declaration?

Warning: Invalid argument supplied for foreach() in /var/www/html/basicversity.com/show_quiz.php on line 183


2. What is the most basic construction for an Enum?






3. What must you do when extending an abstract class or implementing any interface?






4. Where can the brackets for an array declaration go?






5. At what point will you get an error if an interface method is 'protected' or 'private'?






6. What is the code format for an abstract method?






7. What is the purpose of making a method 'native'?






8. Putting abstract and final in the class declaration will give you a run-time or compile time error?






9. What are the eight primitive types in Java?






10. If a class is abstract - do the methods which ares supposed to be abstract too need to be marked 'abstract'?

Warning: Invalid argument supplied for foreach() in /var/www/html/basicversity.com/show_quiz.php on line 183


11. What are the rules for checked exceptions in overriding a method?






12. What Java version began allowing an Enum type?






13. An interface method cannot be...






14. Does an override have to throw all the exceptions of the original method?






15. Do Enums have to be within an existing class?






16. When would you get an error for a class declaration as follows and why? - protected class Me { }

Warning: Invalid argument supplied for foreach() in /var/www/html/basicversity.com/show_quiz.php on line 183


17. When are class instance variables instantiated?






18. Where in the source code must a 'package' statement be?






19. How many bits does a primitive 'double' hold?






20. How many arguments can an Enum constructor have?






21. What is the length in bytes of type 'long' - and what is it's maximum size?






22. What is the purpose of making a method 'synchronized'?






23. All fields in an interface must have what three access & non-access modifiers?






24. Can you make an overriding method more access restrictive (public to private) or less restrictive (private to public)?






25. What is the syntax for declaring multiple variables on one line?






26. How many non public classes can be in any one file?






27. What three non-access modifiers can be used with a class declaration?






28. Can an abstract class have a final method?






29. For any method to be abstract - what must also be true about the class?






30. You cannot _____ a static method






31. What are the built-in methods for class Object?






32. When overriding a method - the argument list (i.e. signature) must be what?






33. Local ________ can be marked final






34. Enums cannot be declared inside...






35. How many bits does a primitive 'float' hold?






36. An ________cannot be static?






37. Once a reference variable is defined - can it's object type be changed?






38. What is the purpose of making a class 'abstract'?






39. What IEEE standard does using strictfp conform to?






40. A class is access modified as default. It's methods are access modified as 'public'. What other class files can access the methods in this class?






41. An interface method cannot be modified as...

Warning: Invalid argument supplied for foreach() in /var/www/html/basicversity.com/show_quiz.php on line 183


42. What is the effect of making a method argument final?






43. If an Enum has a constructor - can you call that constructor?






44. An original method that will be overriden by a class in the same package as the original could have what access levels and still be considered an 'override'?






45. What is the purpose of an Enum?






46. Is this identifier name valid? Why or why not? int $_myVar;






47. What modifiers can you use with method parameters?






48. How many classes can a class extend?






49. An ________ variable cannot be marked strictfp






50. If a class's public class declaration is something like - 'public class HiThereSally {' - what must the source code file be named? Why?







Sorry!:) No result found.

Can you answer 50 questions in 15 minutes?


Let me suggest you:



Major Subjects



Tests & Exams


AP
CLEP
DSST
GRE
SAT
GMAT

Most popular tests