aspose file tools*
The moose likes Mock Exam Errata and the fly likes Why is Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » Mock Exam Errata
Bookmark "Why is "c"?" Watch "Why is "c"?" New topic
Author

Why is "c"?

pony
Greenhorn

Joined: Jan 22, 2001
Posts: 6
What tags are mandatory when creating HTML to display an applet
Select most appropriate answer.

a) name, height, width
b) code, name
c) codebase, height, width
d) code, height, width
e) None of the above
the answer is c),
why is not d)?


I like Java
Golam Newaz
Ranch Hand

Joined: Jan 08, 2001
Posts: 64
Hi,
If i got this question first i would say that answer is d.
Actually, i think answer is c. Look
By default, a browser looks for an applet's class and archive files in the same directory as the HTML file that has the < APPLET > tag. [spaces inserted by Mapraputa to force browsers to diplay HTML rather than interpret it](If the applet's class is in a package, then the browser uses the package name to construct a directory path underneath the HTML file's directory.) Sometimes, however, it's useful to put the applet's files somewhere else. You can use the CODEBASE attribute to tell the browser in which directory the applet's files are located:
Normally when you run the file you keep your HTML and Class
File in the same directory. But if it is happened that only
your class file in the package and which is in the other
server then you have to use CODEBASE to find the class file.
Kindly find the details in this site:
http://java.sun.com/docs/books/tutorial/applet/appletsonly/html.html
-Golam Newaz
------------------
[This message has been edited by Mapraputa Is (edited February 15, 2001).]
Golam Newaz
Ranch Hand

Joined: Jan 08, 2001
Posts: 64
Hi,
If i got this question first i would say that answer is d.
Actually, i think answer is c.
http://java.sun.com/docs/books/tutorial/applet/appletsonly/html.html
-Golam Newaz
------------------
Golam Newaz
Ranch Hand

Joined: Jan 08, 2001
Posts: 64
Hi,
I do not know why it is getting problem to post the
message. I am giving it again. Kindly find the details
here:
http://www.java.sun.com/docs/books/tutorial/applet/appletsonly/html.html
-Golam Newaz
Marcus Green
arch rival
Rancher

Joined: Sep 14, 1999
Posts: 2813
If I got this question on the Sun Certified Java Programmers exam I would know I had slipped through a knot hole in the space time fabric. The exam does not cover the topic of applets.
Marcus


SCWCD: Online Course, 50,000+ words and 200+ questions
http://www.examulator.com/moodle/course/view.php?id=5&topic=all
Mapraputa Is
Leverager of our synergies
Sheriff

Joined: Aug 26, 2000
Posts: 10065
Golam, when you use HTML tags in your message they are interpreted, which is probably not your purpose . To prevent it you can ether put spaces, like < HTMLTag >, or use [], or just use HTMLTag without any "<" symbols. If you see that your message is corrupted, you can edit it and delete ill-behavio symbols.
Thanks for answering Pony's question!
Thanks to Marcus for explanation why you shouldn't answer Pony's question! Marcus, are you sure we are 100% protected from getting applet questions? I confirm that I did not get them on my exam. But it's better to know the answers, just in case.
[This message has been edited by Mapraputa Is (edited February 15, 2001).]


Uncontrolled vocabularies
"I try my best to make *all* my posts nice, even when I feel upset" -- Philippe Maquet
Manfred Leonhardt
Ranch Hand

Joined: Jan 09, 2001
Posts: 1492
Hi,
Not that it matters anymore, but HTML 3.2 reference page shows the attributes CODE, WIDTH, and HEIGHT as required and all else as optional. This is also supported by the HTML 4.0 language reference.
Manfred.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Why is "c"?