<< this is very, very, very serious and scary | Home | The Wonderful World Of Amazon Spam (Part 4) >>

Friday Java Quiz: Know Your JDK Tools

The Sun JDK 6 on my Debian 4.0 system contains the following executables in its bin directory:

[weiqi@gao: /usr/lib/jvm/java-6-sun-1.6.0.06/bin] $ ls
amd64         java      jhat        jstat         rmic         unpack200
appletviewer  javac     jinfo       jstatd        rmid         wsgen
apt           javadoc   jmap        keytool       rmiregistry  wsimport
extcheck      javah     jps         native2ascii  schemagen    xjc
idlj          javap     jrunscript  orbd          serialver
jar           jconsole  jsadebugd   pack200       servertool
jarsigner     jdb       jstack      policytool    tnameserv

Some of these tools, such as javac, java and javap I use every day. Others, such as appletviewer and jdb, not so often any more. There are some I never used.

Today's quiz has multiple questions:

Q: for (String exe : aboveList) {
        What does exe do?
        Have you ever had any occasions to use it?
    }

Tags :


Re: Friday Java Quiz: Know Your JDK Tools

Am I missing something? That's an enhanced iteration: the exe variable will be initialized to the item in the list, somewhat like calling Iterator.next().

Re: Friday Java Quiz: Know Your JDK Tools

Adam, i think you missing the main question

Re: Friday Java Quiz: Know Your JDK Tools

You do use rmic rmid rmiregistry when developing rmi based standalone applications.. which you may not do now a days.

Re: Friday Java Quiz: Know Your JDK Tools

jar is used pretty often to create java archives and serialver is used to generate the serial version UID of a serializable class.

Re: Friday Java Quiz: Know Your JDK Tools

pack200 is to pack jar unpack200 to unpack jar jconsole console for jmx apt annotation processor native2ascii must have for web app others dont do much :P

Re: Friday Java Quiz: Know Your JDK Tools

orbd is to run the CORBA deamon if you want to dynamically bind to a CORBA object. jHat is for profiling or heap analyzing.

Re: Friday Java Quiz: Know Your JDK Tools

I'd suggest you RTFM and don't waste web space/people time to do your homework for you!

Re: Friday Java Quiz: Know Your JDK Tools

previous comment from anonymous coward = ass

Add a comment Send a TrackBack