for(declaration : expression)
statement
int[] foo = {1, 2, 3, 4, 5};
for (int i : foo) {
System.out.println(i);
{
Source: Java in a Nutshell pg 50
2. More stress
Less efficiency
More frustration
More pressure, etc.
Source: http://www.nytimes.com/2008/10/25/business/yourmoney/25shortcuts.html?pagewanted=2
3. If companies use the open source software as their base, their "value added" programs might be considered "derivative works" and would then need to make the source code available even to competitors.
Source: http://www.abanet.org/intelprop/opensource.html
4. High coverage rates means that a lot of code was exercised. It doesn't mean that the code was exercised well.
Source: http://www.ibm.com/developerworks/java/library/j-cq01316/index.html
5.
1)Estimating the time to modify existing code.
developers: To check code quality before attempting to modify it
managers: To get a better estimate of time a developer needs to do the work on that code.
2) Evaluating code quality
Shows where code lacks testing
3) Accessing functional testing
Use results to help facilitate risk mitigation
source: http://www.ibm.com/developerworks/java/library/j-cq01316/index.html
6. GNU = GNU's Not Unix
If the GPL software is modified, it must be distributed under GPL. The GPL spreads to any modified GPL software.
7. Source available software has the source available to be viewed but it cannot be modified or redistributed like open source software.
Source: http://en.wikipedia.org/wiki/Open_source_software
8. Identity-based: Two references are equal only if they refer to the same object.
State-based: Two objects are equal only if they contain the same value.
9. List
10.
<target name="init">
<mkdir dir="build/classes" />
</target>
Source: "Ant in Action: Java Development with Ant"
0 comments:
Post a Comment