Re: JAVA BASICS
"hema" <hemanthhr@gmail.com> wrote in message
news:1175013718.941974.235080@b75g2000hsg.googlegroups.com...
HELLO i am new to java.please help me by clarify these doubts
1)what is COMPILE-TIME TYPE and RUN-TIME TYPE?
They are terms I'd rather avoid using. Compile-time type probably
refers to the type of a reference, whereas run-time type probably refers
to the type of an object. The concept that an object might be of a
different type than that of the reference pointing to that object is
something a lot of beginners have trouble with, I find. Consider:
Number foo = new Integer(5);
Here, we have a reference "foo" whose type is Number, and it points to
an object whose type is Integer. The type of the reference (Number) is
different from the type of the object (Integer).
2)what are actions that are done in COMPILATIONPROCESS and
in
RUN-TIME PROCESS?
Well... compilation occurs during the "compilation process" and
running-the-program occurs during "run-time process". This is a pretty
open-ended question, and I bet you could fill 4 books with all the
possible things that could be done during compilation and runtime (by
investigating the internals of various compilers and JVMs). I won't bother
going that detailed.
2)please give detailed explanation on MULTITHREADING.
PLEASE GIVE ME INFORMATION ON JAVA RESOURCES ON INTERNET
ESPECIALLY ABOUT MULTITHREADING(it is very confuse me)
See:
http://java.sun.com/docs/books/tutorial/essential/concurrency/
You may also be interested in:
http://www.cs.indiana.edu/docproject/zen/zen-1.0_6.html#SEC56
- Oliver