aspose file tools*
The moose likes Ranch Office and the fly likes Rules Roundup nitpicking Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » This Site » Ranch Office
Bookmark "Rules Roundup nitpicking" Watch "Rules Roundup nitpicking" New topic
Author

Rules Roundup nitpicking

Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
I just checked out the Rules Roundup for the first time today. Way cool! Thanks JavaRanch!
I do have a couple of nitpicks to share:

question #106
Is this legal?
public static void main(String [ ] fred)

In what context?

question #121
Does a final member variable have to be initialized at the time its declared?

"its" should be "it's"


[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
Marilyn de Queiroz
Sheriff

Joined: Jul 22, 2000
Posts: 9043
    
  10
question #106
Is this legal?

public static void main( String[ ] fred )

In what context?


I don't understand your question about the question. Is it legal or is it not legal to declare the main() method this way? What does context have to do with it?

"its" should be "it's"

You're absolutely correct!


JavaBeginnersFaq
"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
It is obvious that this is a method header. Perhaps this determination is the purpose of the question.
It would seem to me, though, that this is also the header for the main method in a Java application that could serve as the main entry point for the JVM to that application.
So, does "Is this legal?" mean:
"Is this legal as a method header?"
or
"Is this legal as the main entry point to an application?" (or similar wording)
Sure, in both cases the answer is the same. That's why I'm just calling it nitpicking.
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
And since you're paying attention to this post, another nitpick:

Question # 328
TRUE or FALSE: in a try/catch construct, the catch blocks may be written in any order and the most narrow/specific catch argument is chosen at

Perhaps my display was cutting the question short and there were more words to follow - but it just looks like a small grammatical error to me.
As a side note: I'd be glad to run through the questions in the rules roundup and make any small grammatical/spelling changes - if you trusted me
Marilyn de Queiroz
Sheriff

Joined: Jul 22, 2000
Posts: 9043
    
  10
Originally posted by Dirk Schreckmann:
It would seem to me, though, that this is also the header for the main method in a Java application that could serve as the main entry point for the JVM to that application.
So, does "Is this legal?" mean:
"Is this legal as a method header?"
or
"Is this legal as the main entry point to an application?" (or similar wording)
Sure, in both cases the answer is the same.

Yep. The answer is the same. And "fred" is just as legal as "args".
Marilyn de Queiroz
Sheriff

Joined: Jul 22, 2000
Posts: 9043
    
  10
Originally posted by Dirk Schreckmann:
in a try/catch construct, the catch blocks may be written in any order and the most narrow/specific catch argument is chosen at

Perhaps my display was cutting the question short and there were more words to follow - but it just looks like a small grammatical error to me.

"in a try/catch construct, the catch blocks may be written in any order and the most narrow/specific catch argument is chosen at runtime."

Must've been your display.
Marilyn de Queiroz
Sheriff

Joined: Jul 22, 2000
Posts: 9043
    
  10
Originally posted by Dirk Schreckmann:
I'd be glad to run through the questions in the rules roundup and make any small grammatical/spelling changes - if you trusted me

That's not my decision to make.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Rules Roundup nitpicking
 
Similar Threads
Newer version of Rules Roundup?
Rules Roundup Problem
Cleared SCJP
static final?
Rules Roundup game