aspose file tools*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Exception handling and inner classes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Exception handling and inner classes" Watch "Exception handling and inner classes" New topic
Author

Exception handling and inner classes

amit sanghai
Ranch Hand

Joined: Dec 05, 2000
Posts: 231
Q) Which of the following requires explicit exception handling or rethrowing?
1) Traversing each member of an int array.
2) Traversing each member of an object array.
3) Attemting to open a file.
4) Attempting to read from a file.
5) Attempting to open a network socket.
6) Accessing a method in other class.
7) Calling a method defined with a throws clause.
Q) Which statements are true?
1) An inner class may be defined as static.
2) An inner class may NOT be defined as private.
3) Anonymous inner class may have only one constructor.
4) An inner class may extend another class.
5) Anonymous inner class may only be created within the body of a method.
6) Anonymous inner class can only access static fields of enclosing class.
7) Anonymous inner class has to be deslared and instantiated in the same place.
Corey McGlone
Ranch Hand

Joined: Dec 20, 2001
Posts: 3271
Amit,
Instead of just posting questions out here, why not post the question along with what you think the answers are and why? If you're mistaken, we can then give you much more help than if I were to just blurt out answers to you.
[ August 19, 2003: Message edited by: Corey McGlone ]

SCJP Tipline, etc.
Shafkat Talli
Ranch Hand

Joined: Aug 01, 2003
Posts: 30
by the way, my english isnt very good, what does Traversing really mean ?


---------------------------<br />Shafkat Talli<br />SCJP 1.4, August 2003.
Corey McGlone
Ranch Hand

Joined: Dec 20, 2001
Posts: 3271
The definition given from dictionary.com reads like this:

To travel or pass across, over, or through.

In the case of data structures, as we're talking about here, we're talking about moving from one element of the data structure to the next. Therefore, traversing an int array would be the process of going through each element of that array - basically, "travelling" from one end to the other.
I hope that helps,
Corey
Shafkat Talli
Ranch Hand

Joined: Aug 01, 2003
Posts: 30
cheers, thanx.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Exception handling and inner classes