Java Byte Code Compiler & New objects

1. I would like to know how does the Java Byte Code Compiler work,
whats the difference between "JIT just-in-time compiler" & intepreted methods?
How does Hotspot VM compiler come in?

2. Whats the difference between using new() to create new objects
and Class.newInstance();

thanks.
jedistarAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

TimYatesCommented:
1) Nice bytecode explanation:

http://www-128.ibm.com/developerworks/ibm/library/it-haggar_bytecode/

Nice JIT vs Interpreted explanation:

http://en.wikipedia.org/wiki/Just-in-time_compilation

Hotspot was the name for the JIT JVM.

2) Class.newInstance is using reflection

http://java.sun.com/docs/books/tutorial/reflect/index.html

new Object() is the normal way of doing it, but you have to know what class of object you're going to be creating beforehand...

Tim

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
WebstormCommented:
>> 2. Whats the difference between using new() to create new objects and Class.newInstance();
new <class>()  is faster than using reflection Class.newInstance()
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java

From novice to tech pro — start learning today.