Android Java Object/Class Syntax Use In This Example
<p>I am new to Android,  but I know <code>Javascript</code> so I have some familiarity in Object Oriented programming. </p>

<p>In this line:</p>

<pre><code>Resources myResources = getResources();
AnimationDrawable androidAnimation;
androidAnimation = 
  (AnimationDrawable)myResources.getDrawable(R.drawable.frame_by_frame); 
</code></pre>

<ol>
<li>is androidAnimation a new object initialized by the
AnimationDrawable class?</li>
<li>In (AnimationDrawable)myResources what is this syntax where the
class is in parentheses proceeding a object?</li>
</ol>
