OOPortal
Technology
Search
SiteMap
J2EEOnline
RationalDB
Building C++ Classes
Corba Fundamentals
Corba Java Programming
Designing Reusable Code
Programming C++
Structured Programming
Corba Java Programming
Java Mapping
Java Mapping Clients
Idl Constructed Types
IDL-to-Java mapping - Quiz
Each question is worth one point. Select the best answer for each question.
1.
What would be the package name for module
bar
in the following IDL definition?
Please select the best answer.
A.
package foo.bar;
B.
package org.omg.CORBA.bar;
C.
package bar
D.
package org.omg.CORBA.foo.bar
2.
To what Java type does an IDL
long
map?
Please select the best answer.
A.
java.lang.Integer
B.
int
C.
java.lang.Long
D.
long
3.
What is the difference between the IDL types
char
and
wchar
? To what Java type do they each map?
Please select the best answer.
A.
There is no difference, they both map to a Java
char
.
B.
Char
is a byte and so maps to a Java byte.
wchar
is a Unicode
char
and so maps to a Java
char
.
C.
Char
is a byte, whereas
wchar
is a Unicode
char,
but they both map to a Java
char
.
D.
Char
is a character data type , whereas
wchar
is a wrapped
char
.
Score =
Correct answers:
Quiz Explanation