Last active
January 24, 2016 04:59
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.unascribed.blah; | |
class Blah { // warning: Class Foo does not specify an access modifier (defaulting to package) | |
int blah; // warning: The field blah does not specify an access modifier and the | |
// class specifies no default (defaulting to package) | |
void hello() { // warning: The method hello does not specify an access modifier and | |
// the class specifies no default (defaulting to package) | |
System.out.println("Hello, World!"); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.unascribed.foo; | |
package class Foo extends Bar implements Baz default private { | |
int quux; // private | |
package void hello() { | |
System.out.println("Hello, World!"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment