Added Java Example

write and remove object, destroy ioCtx