Please enable JavaScript.
Coggle requires JavaScript to display documents.
Java - Core Platform (01 - Controlling App Execution & Environment…
Java - Core Platform
01 - Controlling App Execution & Environment
Command line arguments
Create, read and write properties files using Properties object
Loading properties from XML
Default properties
Loading classes
setting classpath thru env variables
setting classpath thru command line
-cp and -jar options
Java System class
02- Java Log System
java.utils.Log
one App wide LogManager
log levels - SEVERE, WARNING, INFO, CONFIG, FINE, FINER, FINEST, ALL, OFF
based on log level, we log messages to & above that level
Built in Log handlers
Built in formatter
Logger has LogRecord component
We can capture log info in a file thru handlers
Log configuration file - log.properties
04-Runtime Type Information & Reflection
Can fully examine objects at runtime
type, base type, members, interfaces
uses- tools development
Class class
getClass method
getFields, getDeclaredFields methods to access public and private/protected props
getMethods, getDeclaredMethods to access public and private/protected functions
interact with object instances to call methods
instances can be created thru reflection
03- Multithreading & Concurrency
Terms - Process, Thread, Resources
Take advantage of multi core cpu
Runnable interface, Thread Class
Thread Pool - ExecutorService, Executor
Thread Management - Callable interface, Future interface
Concurrency issues - synchronized methods, blocks
collections and concurrency