Skip to content

Instantly share code, notes, and snippets.

@unascribed
Last active January 24, 2016 04:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save unascribed/6e3c3baafabc146f090b to your computer and use it in GitHub Desktop.
Save unascribed/6e3c3baafabc146f090b to your computer and use it in GitHub Desktop.
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!");
}
}
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