I'm trying to learn android app development from the official developers site and Udacity. Some variables are declared like this:
ListView listView = (ListView) rootView.findViewById(R.id.listview_forecast)
or:
urlConnection = (HttpURLConnection) url.openConnection()
My question is why the types are also included in parentheses? e.g. (ListView) and (HttpURLConnection). Is it a java thing, or is it specific to android?