Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!

Maciej Gulak

Greenhorn
+ Follow
since Mar 07, 2005
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Maciej Gulak

Hi Jay,

I think you wanted to type '-' instead of '+'.

For example, JLS says: "[...] note that, in all cases, ~x equals (-x)-1"

br,
Maciej
Hi ramya,
The statement

A class inside an interface is always public and static and cannot call the methods declared in the interface.

is not true.
For example, this code works:


and in the main(String[]):

The output is: Implemented method() called

So, you can call a method declared in the interface.
Note, that the method() in NestedClass must be marked public,
since it is implicitly declared public in EnclosingInterface
(cannot have weaker access privileges).

Cheers,
Maciej

[ March 07, 2005: Message edited by: Maciej Gulak ]
[ March 07, 2005: Message edited by: Maciej Gulak ]