Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Classes in the JLS 8

DZone's Guide to

Classes in the JLS 8

· Java Zone
Free Resource

Bitbucket is for the code that takes us to Mars, decodes the human genome, or drives your next car. What will your code do? Get started with Bitbucket today, it's free.

When people refer to Java, they often include the libraries.  This could refer to just the standard libraries or third party libraries.  However, which classes are mentioned in the JLS.  It is a surprisingly short list.

Types

boolean, byte, short, char, int, float, long, double, void

Classes

Object, Class, ClassLoader, String, Thread, ThreadGroup, System, Reference, ReferenceQueue, Collection, List, Vector, Random, ArrayList, SecurityManager, Dictionary, HashSet, AbstractSet, HashMap, AbstractMap, ThreadLocal, ByteArrayInputStream, Date, Enumeration, BitSet, Observable, Collections,  Runtime, StringBuffer, MethodHandle, Arrays, 
Boolean, Byte, Short, Character, Integer, Long, Float, Double, Number

Interfaces

List, Serializable, Cloneable, DataInput, DataOutput, Runnable, Observer, Map, Comparable, Annotation, Predicate, Iterable, Map.Entry, AutoCloseable, 

Enums

RetentionPolicy, ElementType.

Exceptions/Errors

Throwable, Exception Error, RuntimeException, ClassCircularityError, NullPointerException, OutOfMemoryError, ArithmeticException, ClassCastException, ArrayStoreException, ArrayIndexOutOfBoundsException, InterruptedIOException, FileNotFoundException, PriveledgedExceptionAction, VirtualMachineError, StackOverflowError, IOException, ClassFormatError, NoClassDefFoundError, LinkageError, VerifyError, IncompatibaleClassChangeError, IllegalAccessError, InstantitationError, NoSuchFieldError, NoSuchMethodError, UnsatifiedLinkError, LinkageError, ExceptioninIntializerError, AbstractMethodError, AssertionError, NegativeArraySizeException, UnsupportedOperationException. IllegalMonirotStateException, InterruptedException,

Annotations

Indexed: Deprecated, FunctionalInterface, Inherited, Override, Repeatable, Retention, SafeVarargs, SuppressWarnings, Target,
Mentioned:  Documented

Are you using Bitbucket to accomplish your company's mission? Share your company’s mission with #Forthecode for a chance to be featured on our homepage, our social media channels, or win a free t-shirt!

Topics:

Published at DZone with permission of Peter Lawrey, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

THE DZONE NEWSLETTER

Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

X

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}