Java Language API reference | Command Line

Java Language API reference can be had from the command line itself by the command javac -Xprint and then the fully qualified className.

For example:

C:\Java\Java7\bin>javac -Xprint java.lang.String

prints all the String class methods on the command line for a quick reference, which comes in handy if you do not have quick access to the internet or want to refer quickly.

package java.lang;

public final class String implements, java.lang.Comparable<java.lang.String>, java.lang.CharSequence {

  private static class CaseInsensitiveComparator implements java.util.Comparator<java.lang.String>, {
    private static final long serialVersionUID = 8575799808933029326L;

    private CaseInsensitiveComparator();

    public int compare(java.lang.String arg0,
      java.lang.String arg1);
  private final char[] value;
  private int hash;
  private static final long serialVersionUID = -6849794470754667710L;
  private static final[] serialPersistentFields;
  public static final java.util.Comparator<java.lang.String> CASE_INSENSITIVE_ORDER;
  private static final int HASHING_SEED;
  private transient int hash32;

  public String();

  public String(java.lang.String arg0);

  public String(char[] arg0);

  public String(char[] arg0,
    int arg1,
    int arg2);

  public String(int[] arg0,
    int arg1,
    int arg2);

  public String(byte[] arg0,
    int arg1,
    int arg2,
    int arg3);

  public String(byte[] arg0,
    int arg1);

  private static void checkBounds(byte[] arg0,
    int arg1,
    int arg2);