Loading topic
main method, and that you can compile and run it from a terminal or an IDE. It covers the package declaration: what it does, where it goes, and the errors it causes when misused. Naming rules, directory layout, imports and acc5 min readmain method and that you know what a package declaration looks like. It covers how to choose package names that stay unique, how to handle domain names that are not valid identifiers, and how to arrange names inside a project.5 min readmain method, and that you know class, method and field syntax. It also assumes you can compile from a command line or an IDE. You have seen the package declaration. Here you will see how it ties to folders on disk, and what bre6 min readmain method, and that you know class, method and field syntax. You should also be able to compile Java from a command line or an IDE. It builds on the previous chapters, where a package declaration puts a class in a package and5 min readmain method, that you know the package declaration, and that you have seen import statements. It explains the one package you never have to import, what that includes, and where the convenience stops.5 min readpackage declaration and a single-type import work. Here you will learn what a wildcard import does, how the compiler uses it to resolve names, and when to avoid it.5 min readjavac -d. Packages exist so that two classes can share a simple name without clashing. The conflict appears when one source file needs to use both classes, or when the c6 min readjavac -d and java -cp. Earlier chapters covered those topics.5 min readextends and super(...), and compile with javac. You should also know public and private and how a package declaration places a class in a package. Here you will learn how the two middle access levels, package-private5 min readmain method, know the package and import syntax from the earlier chapters, and can use a terminal. It covers how javac and java find your files once code lives in packages. Most errors beginners hit with packages come from mixing up the sou7 min readjavac and java. It also assumes you know what a package declaration does, how source directories mirror packages, and how import works. The default package is the one you get when you leave out the package line. It works for a first6 min readjavac -d and java -cp, and that you know what a fully qualified class name is. It covers how compiled packages are bundled into JAR files, how those files are used on the classpath, and how the module system adds a second layer of a6 min read