I’m making the leap to android applications and java development and am trying to find my way around the java world, specifically eclipse. I am an experienced C# .Net developer and everything looks familiar but I need to get a few fundamentals.
I just need to have a few things clarified relating C#/Visual to Java/Eclipse:
1: Are Java Projects/Packages/Classes the equivilant to C#/VS Solutions/Projects/Classes?
2: In C#/VS my project “ProjectName” will compile down to ProjectName.dll that I can then reference, how does this work in the Java world?
3: In C#/VS you have different project types, console apps, win form apps, class library etc, whats the equivalent in Java if any?
I think thats enough for now.
Any help would be appreciated.
Cheers.
Yes/No/Yes. Packages in Java are analogous to Namespaces in .NET. Unfortunately, .NET does not have the strict file layout requirements for its namespaces. So, while Java requires com.yourcompany.yourclass to exist as com/yourcompany/yourclass.java, .NET can have com.yourcompany.yourclass exist anywhere in the file tree.
In Java, you are compiling everything into Jar files. This is analogous to compiling to a DLL or EXE.
It’s completely IDE specific. These are just conveniently preset templates to help you get started without requiring you, the developer, to setup all of your dependencies. I’m pretty sure each one is represented almost verbatim under Eclipse project creation.