Is it possible to have Java object dynamically? I am new in this language and curious too.
Edit: Apology, I think I posted the wrong word.
Thanks for any answer.
Is it possible to have Java object dynamically? I am new in this language and curious too.
Edit: Apology, I think I posted the wrong word.
Thanks for any answer.
Compilation phase is to translate human readable language that you use to code to byte code , which is understood by Java Virtual Machine, there's no object notion there.
Objects are created runtime by Java Virtual Machine based on classes that you create as a programmer.
Start here:
http://www.javabeginner.com/learn-java/java-classes-and-objects
Yes reflection can provide dynamic object creation(on fly )
Class anonymous = Class.forName("CLass name");
anonymous.getInstance();
All objects are created at Runtime in java.