Mind map
OCAJP
Map content
OCAJP
break/continue
- labeled
- work as a go to statement
- continue
- only in loops
- break
- loop and switch
- labeled
exceptions
- printing
- Stack
- e.printStackTrace
- default prints only name and message
- Stack
- printing
conversions
- narrowing
- do not apply to
- long
- float
- double
- larger -> smaller datatype
- auto casting
- Accepts only constants of type int, short and byte for direct assign
- do not apply to
- widening
- smaller -> larger datatype
- narrowing
Objects
- pass by reference
- pass the memory location
- any changes to the object will affect other objects pointing to that memory location
- assign to other object only changes the object memory location
- other objects are not affected
- Wrapper
- immutables
- Interger++ results in a new object with the new value
- immutables
- pass by reference
Inheritance
- default or empty constructor will make JVM add a super() call
package modifier
- public>protected>default>private
O.O.
- Override
- determined in run time what method is called
- Covariant returns are allowed
- subclasses as return type
- Overload
- determined in compile time what method is called
- Override
Strings/Wrappers
- evaluated before operations
- substring or anymethod that uses index goes from excluding the end index.
JAVA API
- Math.round
- positive
- >= 0.5 gets the next positive number
- negative
- >= -0.6 gets the nect negative number
- positive
- Math.round
operator precedence
- = has a low precedence
- b1 != b2 = b1 results in compile error, because false = b1
- = has a low precedence
Information
- Description
- Mind Map on OCAJP, created by Ismaell Oliveira on 03/06/2018.
- Created by
- Ismaell Oliveira
- Views
- 0
- Rating