Redian新闻
>
[转载] help please on Java
avatar
[转载] help please on Java# Java - 爪哇娇娃
c*t
1
【 以下文字转载自 Programming 讨论区 】
【 原文由 coconut 所发表 】
I was doing private tutoring on programming. My student's professor
gave some odd questions: Name one feature of java that
i. makes the programs difficult to read
ii. makes the programs difficult to write
iii. makes programs inefficient
iv. that is not orthogonal
For the first one, it just such a bad question. Anyone could make
anything difficult. I don't really know what to say about it.
Same thing for the second one. I could think of enumera
avatar
g*g
2
When you are talking about easy/difficult, you assume a
comparison. Suppose we compare Java with C/C++.
i. No operator overload, A+B is easier to read
than A.add(B)
ii. No multiple inheritance support, and introduce interface
(not really, we should accredit the concept of interface to
M$). Multiple inhertance is easier to understand and write
supposely, although it will cause many problem.
iii. Way too much, another may be fixed length of primitives disable
optimization on all platforms.
iv. No

【在 c*****t 的大作中提到】
: 【 以下文字转载自 Programming 讨论区 】
: 【 原文由 coconut 所发表 】
: I was doing private tutoring on programming. My student's professor
: gave some odd questions: Name one feature of java that
: i. makes the programs difficult to read
: ii. makes the programs difficult to write
: iii. makes programs inefficient
: iv. that is not orthogonal
: For the first one, it just such a bad question. Anyone could make
: anything difficult. I don't really know what to say about it.

avatar
xt
3

Implementing more than one interfaces that has nothing more than
constant definations, and use those constants by directly calling
their variable names without the names of defining interfaces.
Don't know.
Using dynamic method invocation instead of directly calling.
Unnecessary I/O and relying on I/O.

【在 c*****t 的大作中提到】
: 【 以下文字转载自 Programming 讨论区 】
: 【 原文由 coconut 所发表 】
: I was doing private tutoring on programming. My student's professor
: gave some odd questions: Name one feature of java that
: i. makes the programs difficult to read
: ii. makes the programs difficult to write
: iii. makes programs inefficient
: iv. that is not orthogonal
: For the first one, it just such a bad question. Anyone could make
: anything difficult. I don't really know what to say about it.

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。