w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
compiling and running packages of Java classes in command line?

When you are compiling you are pointing to a source file by its path (that uses slashes to separate folder names). When running you are using a java namespace (also called a package+Class name) which use dots. In Java the class name must exactly match the file name. There isn't the same requirement for packages and folders though it's a good idea for keeping code organized.





© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.