examples of java features