Solved

Java Dynamic Libraries

Posted on 1998-12-03
5
226 Views
Last Modified: 2010-03-30
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
Comment
Question by:zivf
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 16

Expert Comment

by:heyhey_
ID: 1228679
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
 
LVL 1

Author Comment

by:zivf
ID: 1228680
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
 
LVL 16

Expert Comment

by:heyhey_
ID: 1228681
.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
 
LVL 1

Author Comment

by:zivf
ID: 1228682
send an empty answer so I can give you your points!
0
 
LVL 16

Accepted Solution

by:
heyhey_ earned 100 total points
ID: 1228683
<empty answer>

This information satisfies you ?
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
check java version using powershell 13 306
Configure a Bean in an XML file 4 49
Html split(text) 2 32
Delete .class files at every compile 4 26
INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question