I am new to Java
and would like to understand how it works.
Type, how to use classe
within the other (and what is it called)?
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
}
For example: it is sending Bundle
to the method but it is not a String
nor a int
or something like that. How does this work exactly?
And another. When we create a String
variable, for example:
String a = "aa";
Why do not we need to use the new
operator and what happens if we stop using it on any object?