Advanced java online training

Post on 20-Jan-2017

85 views 0 download

transcript

Advanced Java Online Training

Glory IT Technologies

Undergraduate, Graduates and Post-Graduates

Java Programming

Prerequisites

Using GenericsType ErasureType BoundariesWildcardsGeneric MethodsStrengths and Weaknesses of Generic

Legacy Code and Generics

1. Generics

A History of Time ... in JavaLimitations of Date and CalendarThe Time APITemporal TypesAccessors and AdjustersFormatting

2. The Time API

Decomposition Into FieldsDate ArithmeticManaging PrecisionDuration and PeriodTime Zones and OffsetsConverting Between Time Zones

2. The Time API

Delegation-Based Stream Model Input Stream and Output StreamMedia-Based StreamsFiltering StreamsReaders and WritersByte-Array StreamsString Readers and WritersClosing Streams, Readers and Writers

3. The Java Streams Model

The File ClassModeling Files and DirectoriesFile StreamsWorking with File SystemsThe Path InterfaceThe Paths and Files UtilitiesProcessing with java.util.stream.Streams

4. Working with Files

BufferingData StreamsPush-Back ParsingByte-Array Streams and String Readers and Writers

5. Delegating Streams

The Challenge of Object Serialization Serialization API Serializable Interface Object Input Stream and Object

Output Stream The Serialization Engine Transient Fields Read Object and write Object Externalizable Interface

6. Java Serialization

oThe OSI Reference ModeloNetwork ProtocolsoThe Socket ClassoThe Server Socket ClassoConnecting Through URL ObjectsoHTTP and Other TCP ServersoDatagram Clients and ServersoNon-Blocking Sockets

7. Sockets

Java Thread ModelCreating and Running ThreadsManipulating Thread StateThread SynchronizationSynchronized Blocks and Methodswait and notifyjoin and sleepMulti-Threading in Servers

8. Threads

The Concurrency APISemaphore and Other Synchronizers

Concurrent CollectionsAtomic OperationsExecutor and Executor ServiceThread PoolsParallel Processing

9. Concurrency

•Uses for Meta-Data• The Reflection API• The Class<T> Class• The java.lang.reflect Package• Reading Type Information•Navigating Inheritance Trees•Dynamic Instantiation•Dynamic Invocation• Reflecting on Generics

10. Reflection

The Proxy PatternDynamic Proxies in JavaUse CasesThe Invocation Handler InterfaceProxy Classes

11. Dynamic Proxies

Aspect-Oriented Programming and Java

The Annotations ModelAnnotation Types and AnnotationsBuilt-In AnnotationsAnnotations vs. Descriptors (XML)

12. Annotations

oAutomated TestingoJUnit and Related ToolsoThe Test AnnotationoThe Assert Class UtilityoTest RunnersoLifecycle MethodsoExpecting ExceptionsoTest Suites

13. Automated Unit Testing with JUnit

Test GranularityReusing Test LogicRecording and Comparing OutputTest IsolationControlling the Test EnvironmentManaging Dependencies

14. Writing Tests

Non-Invasive TestingDesigning for TestabilityFactoriesTesting and Threads

14. Writing Tests

Writing the Test FirstThe TDD CycleAdvantages of TDDResistance to TDDA Case Study

15. Test-Driven Development

Mock Objects in TestingMock Objects in Test-Driven DevelopmentStatic vs. Dynamic MocksStubbingVerifyingMatching and CapturingUsing a SpyPartial Mocking

 

16. Mocking

THANK YOU