javap is a program that looks inside a Java class and reports on all the methods and variables that are exposed by that class ... so it's looking at a Java class's object format.
javadoc is a program that analyses Java source code and reports on all the methods that are exposed by that class.
javap is command line based, but
javadoc produces a whole web site in HTML format ... here's the javap output from our "Time" class from this week:
Dorothy-2:java grahamellis$ javap Time
Compiled from "Time.java"
public class Time extends java.lang.Object{
public int hour;
public int minute;
public int second;
public static int howmany;
public Time(int, int, int);
public Time(int, int);
public int getsid();
public int gethour();
public void setforward(int);
public java.lang.String getdef();
public int getgap(Time);
public static int getcount();
static {};
}
And here's part of the
javadoc output from the same class:

Explore the
full javadoc tree from this week if you wish. It's in HTML, using frames (so I can't easily provide you with a link to the intermediate pages without doctoring files and URLs!) but it WILL take you all the way from Adam to Zoe!
(written 2009-09-25)
Associated topics are indexed as below, or enter http://melksh.am/nnnn for individual articles
A502 - Web Application Deployment - Java - Basic Tools [3819] Packing a tar, jar or war file - best practise - (2012-07-26)
[3151] Disassembling Python and Java - previously compiled code - (2011-01-29)
[2859] Using java, javac, jar, and CLASSPATH - a simple example - (2010-07-07)
[2153] Class Loading and Variable Conversion in Java - (2009-05-02)
[1909] javax.servlet cannot be resolved - how to solve - (2008-11-26)
[1771] More HowTo diagrams - MySQL, Tomcat and Java - (2008-08-24)
[1562] Java Compiler - needs all classes, compiles them all too - (2008-03-03)
[1192] What are WEB-INF and META-INF directories? - (2007-05-18)
[1082] Straight from the .jar - (2007-02-16)
[754] tar, jar, war, ear, sar files - (2006-06-10)
J706 - Java - Objects and Classes [2651] Calculation within objects - early, last minute, or cached? - (2010-02-26)
[2616] Defining a static method - Java, Python and Ruby - (2010-02-01)
[2169] When should I use OO techniques? - (2009-05-11)
[1925] Introduction to Object Oriented Programming - (2008-12-06)
[1906] Long, Longer, Longest in Java - (2008-11-25)
[1500] First Class Java. First step and moving forward. - (2008-01-10)
[1296] An example of Java Inheritance from scratch - (2007-08-08)
[1163] A better alternative to cutting and pasting code - (2007-04-26)
[477] Class, static and unbound variables - (2005-10-25)
[96] Variable Scope - (2004-10-22)
538e
Some other Articles
Which version of MySQL am I running?Weekend and Christmas Promotion - Well House Manor Hotel, MelkshamA Winter Weekend Special at Well House ManorWhat is a JVM, a JRE, a JDK - components of the core Java EnvironmentLooking inside Java classes - javap and javadocSorting Collections of Objects in JavaExceptions in Java - why and howWhere is my Java class?Viv.java uses unchecked or unsafe operations - explanation and cureJava Programming Fundamentals