• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Nothing

digitalgm

Member
Gang, if you feel like taking a quick quiz (5 questions) on Java & the sort and getting a free tumbler or T-shirt for it go to the following:

Linkified for your clicking pleasure :

Here

(Click on the image in the upper right hand corner)

 
It's a real toughey because it randomizes from about 20 questions.
I got it on my 6th try but didn't have a valid email address in it, so I couldn't win.
4/5 should be right:
Unified Modeling Language
Entity Bean
Java.Lang.Example
Set
Java.io.serializable

I think Set is probably wrong. If someone can figure out how to make the questions static, it would be more worthwhile in figuring out.
 
I got 60% on this... anyone know which are wrong?

Data-hiding is better known by what object oriented buzzword?
Encapsulation

In Java, which keyword would you employ when programming
multiple, interdependent threads?
synchronized

Which Java collection class should you use when you do not know the size of the collection?
Iterator

An object that has to be passed as input data to an RMI (Remote Method Invocation) call must minimally implement which of the following interfaces?
java.rmi.Remote

In Java Server Pages (JSP), what is the difference between the @include tag and the jsp:include tag?
The @include tag is evaluated only when the JSP is "compiled" into a servlet, not on every request.
 
I think you missed the following two:

Which Java collection class should you use when you do not know the size of the collection?
Vector

An object that has to be passed as input data to an RMI (Remote Method Invocation) call must minimally implement which of the following interfaces?
java.io.serializable
 
woohoo, 80%... and I haven't even programed in Java before (well, javascript every once in awhile). I got a tumbler because a: I don't know what it is (and I am open to new ideas... free your mind!) and b: I have free t-shirts out the wazoo. Probably more due to reason b.

Here are my answers, eventually we'll get the right ones by ye 'ol process of elimination:
1. Data-hiding is better known by what object oriented buzzword? -> encapsulation
2. In Enterprise Java Beans (EJB), what type of bean would you typically use to represent a business object in the database? -> entity bean
3. Which of the following is not a server-side technology for generating dynamic web pages? -> DHTML (I think this one may be wrong since microsoft has this crazy dynamic database / dhtml thing that I kind of disregarded in my answer... it's not techinically part of the w3c dhtml standard though)
4. In Java Server Pages (JSP), what is the difference between the @include tag and the jsp:include tag? -> The @include tag is evaluated only when the JSP is "compiled" into a servlet, not on every request.
5. If you are developing a word-processor and wish to implement undo functionality, which design pattern would be most helpful? -> iterator (this could be wrong too, though an iterator would be a good name for a multiple undo type function, you would need some sort of action storage type mechanism for remembering past actions which would not be an iterator as far as I know.)
 
Don't know a thing about java, but I got 100%...

Here's my answers:

1. What does UML stand for? -> Unified Modeling Language
2. What is the name of the method used to schedule thread execution? -> start
3. Which of the following is not a server-side technology for generating dynamic web pages? -> DHTML
4. If you are developing a word-processor and wish to implement undo functionality, which design pattern would be most helpful? -> Command
5. An object that has to be passed as input data to an RMI (Remote Method Invocation) call must minimally implement which of the following interfaces? -> java.io.Serializable

(I kinda cheated and used a search engine...😀)
 
I got 80%...but I don't know which one I missed..
One
In Java, what is the class name for mutable (modifiable) strings?

a. BufferString

b. String

c. Buffer

D. StringBuffer

e. None of the above

Two
Which of the following is not a server-side technology for generating dynamic web pages?
a. ASP

b. JSP

c. Cold Fusion

D. DHTML

e. None of the above

Three
What is the effect of adding a sixth element to a vector created as follows: Vector v = new Vector(5,10)?
a. ArrayIndexOutOfBoundsException

b. Vector grows in size to a capacity of 10 elements

c. Vector grows in size to a capacity of 15 elements

D. Nothing, the vector will have grown when the fifth elemnt was added

e. None of the above

Four
An object that has to be passed as input data to an RMI (Remote Method Invocation) call must minimally implement which of the following interfaces?
a. java.rmi.Remote

B. java.io.Serializable

c. java.i😵bjectOutput

d. All of the above

e. None of the above

Five
In Java Server Pages (JSP), what is the difference between the @include tag and the jsp:include tag?
a. They are the same.

B. The @include tag is evaluated only when the JSP is "compiled" into a servlet, not on every request.

c. They are the same, but @include has been depracated in the JSP 1.1 specification.

d. The jsp:include tag is only available when running Internet Explorer.

e. None of the above

 
Back
Top