[android-developers] Re: Some of the strange JAVA syntax - android specifics?

2009-04-02 Thread Stoyan Damov
Perhaps he was thinking of C#'s lock keyword ;) On Thu, Apr 2, 2009 at 8:17 PM, Marco Nelissen wrote: > > On Thu, Apr 2, 2009 at 10:13 AM, Odessa Silverberg > wrote: >> >>> synchronized: >>> I'd suggest your starting reading about Java Synchronization. >>> 'synchronized' blocks prevent multiple

[android-developers] Re: Some of the strange JAVA syntax - android specifics?

2009-04-02 Thread Marco Nelissen
On Thu, Apr 2, 2009 at 10:13 AM, Odessa Silverberg wrote: > >> synchronized: >> I'd suggest your starting reading about Java Synchronization. >> 'synchronized' blocks prevent multiple threads from executing the same >> block of code at the same time. They are used to synchronize access to >> meth

[android-developers] Re: Some of the strange JAVA syntax - android specifics?

2009-04-02 Thread Odessa Silverberg
> synchronized: > I'd suggest your starting reading about Java Synchronization. > 'synchronized' blocks prevent multiple threads from executing the same > block of code at the same time. They are used to synchronize access to > methods and instance-variables and avoid race-conditions. Careless use

[android-developers] Re: Some of the strange JAVA syntax - android specifics?

2009-04-01 Thread Streets Of Boston
@Override is a so-called annotation. It does not generate any byte-code/runnable-code. It just tells the compiler that the method below it is an override of its super-class' method. If your super-class changes its signature of onDraw, your compiler will warn you about the fact that your method (in