WEEK 2
Due Monday 7th October
Discuss in details the semantics and implementation of exception handling in Java.
Obtain a copy of the article "An Empirical Comparison of Seven Programming
Languages" by Lutz Prechelt from _Computer_ magazine, October 2000. You
can get a copy of this magazine from the Library, or Dr. van Engelen can
provide you with one. The article gives comparisons between several
scripting languages, Java, C, and C++.
Divide the article between the team members and discuss the results shown.
·
Discuss the storage classes
·
Discuss the use of "auto", "extern", "static" for
global variables
·
Discuss the use of "auto", "extern", "static" for
local variables of a
function. How is this different from the use of these storage classes
for
globals?
·
Discuss separate compilation and linking in C (with emphasis on using
"static" and "extern")
Devise a test to show the efficiency increase of using CASE/SWITCH statements as compared to using normal if-then-else statements. Provide these results, along with an explanation of the experiment, for discussion. Various ways can be used to show the disparity better, while some ways would actually exaggerate or minimize the findings. Be prepared to discuss your methodology as well.
Obtain a copy of the article "An Empirical Comparison of Seven Programming
Languages" by Lutz Prechelt from _Computer_ magazine, October 2000. You
can get a copy of this magazine from the Library, or Dr. van Engelen can
provide you with one. The article gives comparisons between several
scripting languages, Java, C, and C++.
Divide the article between the team members and discuss the results shown.
Complete exercise 6.7 from our textbook (pg 312). In addition, show examples of problems when = and == are confused in C and C++. How does Java solve some of these problems?
memory management, such as speed, locality, fragmentation,
etc.
Miller Gregory C
Goto jumps are often considered to be bad features of a programming
language. Why are they considered bad? Give examples. Can these statements
be useful? And if so, how? How do languages without goto type statements,
such as Java, get around such limitations.