Diving into Java API