• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 245
  • Last Modified:

Java Dynamic Libraries

I'm new and learning java right now, so I'm sorry if the question might seem trivial to java programmers.

What are the java parallels to windows DLLs and the COM mechanism (i.e. dynamically loading of object and function libraries and runtime query of object interfaces)?
0
zivf
Asked:
zivf
  • 3
  • 2
1 Solution
 
heyhey_Commented:
DLL - .class files are dynamicly loaded from the Java VM - so in Java everithing id Dynamic
COM - look at java.reflection package. you can ask every object / class about its methods / constructors end even build method invokations dynamicly

Java much better than DLL / COM :-)
0
 
zivfAuthor Commented:
Before I give you the points:
aren't the .class files the parallels of .exe files in win/dos machines? can their objects be manipulated after the class has been loaded?
0
 
heyhey_Commented:
.class files look more like .dll files - they are loaded only when some other object needs them. .class files contain object definition - after you have loaded the object definition you can't change it. all Java objects are instances of some class, but classes are objects too (Class object) - classes objects are created from classloader (it knows how to make Class object from array of bytes).

more info ? (sorry, but i'm not native English speaker, so i can't explain everything very well ... :-)
0
 
zivfAuthor Commented:
send an empty answer so I can give you your points!
0
 
heyhey_Commented:
<empty answer>

This information satisfies you ?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now