Lets take this for example...entryText.addTextChangedListener(new TextWatcher() {    TextView wordCount = (TextView) findViewById(R.id.wordCount);    TextView charCount = (TextView) findViewById(R.id.charCount);    @Override    public synchronized void afterTextChanged(Editable s) {        wordCount.setText(W:  + String.valueOf(ChosenFile.countWords(entryText.getText().toString())));        charCount.setText(C:  + Integer.toString(entryText.getText().length()));    }    @Override    public void beforeTextChanged(CharSequence s, int start, int count, int after) {        // TODO Auto-generated method stub    }    @Override    public void onTextChanged(CharSequence s, int start, int before, int count) {        // TODO Auto-generated method stub    }});Are new instances of textviews wordCount and CharCount created each time the listener is invoked? Would it be better to make them global? How is memory handled? Lets say new instances are created, how does that affect memory?
How are objects treated in an anonymous inner class?
java;performance;android