• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Advanced Java I
 

Advanced Java I

on

  • 1,413 views

 

Statistics

Views

Total Views
1,413
Views on SlideShare
1,396
Embed Views
17

Actions

Likes
0
Downloads
22
Comments
0

1 Embed 17

http://www.jayxu.com 17

Accessibility

Categories

Upload Details

Uploaded via as Apple Keynote

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n

Advanced Java I Advanced Java I Presentation Transcript

  • Advanced Java IThread / IO Stream / Reflection
  • Agenda IThread IO Stream Muti-thread? What is “stream” Lock & PV Operation “synchronized” & “volatile” Input Stream / Output Stream wait() / notify() / notifyAll() Thread VS Runnable Reader / Writer sleep() Buffered xxx InterruptedException Decoration Pattern java.util.concurrent
  • Agenda II Reflection Class Loader static Class.forName() Class.newInstance() Class / Method Annotation Dynamic Proxy
  • Thread BasisThread? Process?Muti-ThreadCritical ResourcesLock & PV Operation
  • Thread in Java “synchronized” ~ method ~ block Synchronize WHAT? “volatile” wait() / notify() / notifyAll() “context”
  • java.lang.Thread / Runnable sleep() WHO.sleep()? InterruptedException interrupt() / interrupted() / isInterrupted() A “positive” Exception? pause / suspend
  • Thread in Action I Producer / Consumer Stop Watch
  • java.util.concurrent java.util.concurrent BlockingQueue BlockingDeque Executors java.util.concurrent.locks java.util.concurrent.locks.ReentrantLock java.util.concurrent.locks.ReentrantReadWriteLock java.util.concurrent.atomic
  • Thread in Action II Producer / Consumer again BlockingQueue Lottery Lock
  • Tea Break
  • IO StreamWhat is Stream?Input Stream / Output Stream java.io.XxxInputStream java.io.XxxOutputStreamReader / WriterBuffered xxx
  • How To Use Stream?Decoration PatternFile Capitalizer
  • Class LoaderHow JVM Loads a Class? DelegationHow to Load Our Own Classes? Class.forName() Class.newInstance() ClassLoader.loadClass() / findClass() ClassLoader.defineClass()
  • Reflection Why Reflecting? Benefits Issues How to Reflect? Class / Method / Constructor / Field Annotation Dynamic Proxy EJB (before 3.0)
  • Reflection in Action XUnit Class Loader Reflection Annotation Programming by Contract Dynamic Proxy Annotation Again
  • Q&A