This should be an easy question for someone who knows how it works.
TextView myText = (TextView) findViewById(R.id.myText);
Button btn = (Button) findViewById(R.id.button);
What does the (Textview)/(Button) do, what is it?
Is it equivalent to
TextView myText = new TextView(findViewById(R.id.myText));
Button btn = new Button(findViewById(R.id.button));
Also, I might be mistaken, but this is in the java language not only in android?
Thanks
Note: Im not asking what a textview or a button is, im asking is this a type of instantiation, casting, etc.