O'Reilly logo

Sun Certification Training Guide (310-025, 310-027): Java™ 2 Programmer and Developer Exams by Jamie Jaworski

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Answers to Exam Questions

A1: A. and C. A fully encapsulated class declares its variables as private and provides methods to access the properties that these variables represent.
A2: A. Usage is TextArea(rows,columns).
A3: B. and C. NULL and main are not Java keywords.
A4: B. and C. The only non-alphanumeric characters that can appear in an identifier are _ and $.
A5: B. The postfix operator returns the value of x before incrementing U.
A6: A. The purpose of clipping is to restrict painting operations to the clipping region.
A7: C. When more than one event listener is added for an event, it's impossible to determine which listener will be invoked first.
A8: A., B., and D. The identifier name cannot be enclosed in brackets.
A9: C. The finally clause of ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required