Andris Spruds

Greenhorn
+ Follow
since Aug 18, 2003
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Andris Spruds

what happens is that start() asks Virtual Machine to start a new thread and returns *immediately* without waiting for the new thread to be created/started/etc/
That's right - only A is correct.
[ September 22, 2003: Message edited by: Andris Spruds ]
[ September 22, 2003: Message edited by: Andris Spruds ]
Hello Amit,
Your questions are from http://www.jchq.net/certkey/0301certkey.htm. You are not satisfied with the answers there?
Andris Spruds
Hi,
I believe that
1) Yep, wildcard statement in "import books.*" means that you will be able to use all classes from package books in your source file. Note that if you also have package named books.whateverbooks, it won't be included, that is, wildcard is not recurrsive.
2) I think yes.
3) I believe it is optional here... Try compiling it.
4) It also inherits it as protected as long as you tell the compiler to do so, that is, define the overidding method as protected as well. When you override a method, it's access modifier can stay the same, or be less restrictive. So, assuming method is called myMethod, in the subclass you can either have public myMethod(){} or protected myMethod(){}
Be warned that this is the 2nd day I am studying for SCJP...