Win a copy of Spring in Action (5th edition) this week in the Spring forum!

Michael Breuer

Greenhorn
+ Follow
since Nov 18, 2007
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 Michael Breuer

this has many interesting topics, from debugging, to versioning and the lifecycle.
We will get the big view on debugging.
8 years ago
sorry I did not see a curly bracket ... ooops
9 years ago
Why does this work ?


and why can i not reproduce it like that
9 years ago
Hi,
I have not that book but in your code example there is an Object g which is casted to Graphics2D. So if g is a Subclass of Graphics2D I think the Graphics2D-Methods can be used. Note the g-Object is not a Graphics2D-Object which has the abstract Methods. It is not possible to instanciate Objects of abstract classes. If you create an Object all Methods are implemented. g has the implemented Methods which are abstract in Graphics2D and the Methods can be called on this Object.
10 years ago
To put a jar inside a jar there is a tricky solution with
onejar OneJar
10 years ago
Just to make it more concrete

An interface is a list of methods that must be implemented. A class that implements an interface must define all those methods. The method signatures (prototypes) are listed in the interface. Interfaces may also define public static final "constants". An interface is essentially the same as an completely abstract class.



A class can implement an interface without defining its methods when it is an abstract class. So the first class which shall be instanciated has to implement all methods which are not yet implemented in any superclass.
10 years ago
will initialising of a classes fields with default-values be optimized by the compiler or does ist cost performance ?

e.G.

[ November 19, 2007: Message edited by: Michael Breuer ]
11 years ago