Objects and Classes - Part 2
Quiz
- Are the Strings Immutable? Why?
- What is a static attribute and method?, provide a context and give and example.
- How works the == symbol?
- What is the difference between == and
equals? - How works the
toStringmethod before to be overriding? - What is the difference between
String s = "foo"andString s = new String("foo") - How can you determine the class that an object belongs to?
- What is the purpose of the
finalkey word?.