Chris Falter

Greenhorn
+ Follow
since Sep 16, 2011
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
1
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Chris Falter

Question 67 in the LearnKey MasterExam is incorrect because of bad grammar. It is a "check all correct" question, and one of the possible answers is "A jar file can contain classes from only a single package." The test considers this to be incorrect, presumably because the *intention* is to make the adverb "only" apply to the verb "can...contain." I.e., the intention was for the answer to claim that a jar file is not allowed to contain classes from more than one package, which is indeed false.

However, the statement is *true* as written, because the adverb "only" applies to the preposition "from." Read this statement carefully:

"My jar file contains classes from only a single package, the com.foobaz.utils package."

It is legal for a jar file to contain classes from only a single package, just as it is legal for a jar file to contain classes from many packages. So the statement is true. As is the logically equivalent statement that "A jar file can contain classes from only a single package," as in "It is possible for a jar file to contain classes from only a single package."

A correct phrasing of the *intention* would be as follows:

"A jar file may only contain classes from a single package." The grammar is fixed, the new statement is false, and the world is a better place.