Why this is so(please refer to the entire question in description)? :     P.S-I am a beginner in programming so my style of asking question may be a 
    little inappropriate, but please read through my problem and please provide 
    some help.

I have created an arrayList in android studio.
    
    //creating an arrayList of string type named words

    ArrayList<String> words = new ArrayList<String>();
        words.add("one");
        words.add("two");
        words.add("three");
        words.add("four");
        words.add("five");
        words.add("six");
        words.add("seven");
        words.add("eight");
        words.add("nine");
        words.add("ten");

Now the elements of this arrayList are to be displayed in TextView. 
I have declared a Linear Layout named rootView-

    LinearLayout rootView = (LinearLayout) findViewById(R.id.rootView);

This is the code to display the first element of the Arraylist in the textview -
    
    TextView wordView = new TextView(this);
            wordView.setText(words.get(i));
            rootView.addView(wordView);


Now my question is to display all the elements of this ArrayList, we will create individual "textviews", (with all textviews with a different name). 
If the name of any declared Textview matches with any another textview then error occurs.
But when we use loops to display the elements of this arraylist then we write something like this -

            for (int i = 0;i<words.size();i++){
            TextView wordView = new TextView(this);
            wordView.setText(words.get(i));
            rootView.addView(wordView);
        }

This gives no error. So inside loops we have declared a single TextView named "wordView". Everytime the loop runs, a new Textview with same name wordView is created,then WHY IT DID'NT SHOWING ANY ERRORS??
and whenever we manually create textviews then there is a error whenever the name matches. WHy this is so??
Please Help!!

