Link to home
Start Free TrialLog in
Avatar of Alexandre Simões
Alexandre SimõesFlag for Switzerland

asked on

JAVA for a .net C# developer... Help!

Hi...

I need something that goest on the oposite direction of the flow.
I'm a .net developer for 4 years and now I need to leand some JAVA.

I find a lot of books helping people on the migration process from JAVA to C# but found none about the other way around.

Also... what's the most used IDE for non-web JAVA apps? JBuilder?

Can anyone help me?

Thanks!
Alex :p
Avatar of kawas
kawas
Flag of United States of America image

www.eclipse.org is a great free ide

c# is very similar to java (microsoft took java and renamed it ;-)
SOLUTION
Avatar of Mick Barry
Mick Barry
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
There's lots of books on java to C# for the simple reason, java came out before C#. The best way to learn your java is to get a beginner book or just read the java online tutorial. Don't bother about finding a book that help you 'migrate' from C# to Java, because at the end of the day your OO concepts are already there, so it's just a matter of picking up the use of the Java API.

Have a read at the java tutorial and take it from there:

http://java.sun.com/docs/books/tutorial/information/download.html

Good luck with it!
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Compile C# code in Java. If there are any compilation errors, remove them. And it will work ;-)
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Alexandre Simões

ASKER

Hi fffej78...
Thanks for the comparison.

I just want to correct some wrong things about C# (talking about 2.0)

1. C# Swich always did fall into lower levels by default.
To make it get out you must add a break:

                        switch (Name)
                        {
                            case "aaa":
                                // Do something and fall to the next
                            case "bbb":
                                // Do something
                                break;
                            default:
                                break;
                        }

2. Framework 2.0 now supports Partial Classes...


Anyway, I really liked the hints!
Thanks!

Alex :p
Avatar of fffej78
fffej78

Sorry - good point about the switch!

And my bad - I made a cock-up :)  Java is the one that doesn't support operator overloading or partial classes!  They're that similar that making a mistake like that is easy :)

Thanks
:) no prob...

You know, my main trouble is mapping the namespaces...
I kind'a have all the .net namespaces tree on my head and I find it dificult to map that structure to JAVA's.

For sure it's only a matter of practice... :)

Thanks!
Alex
I find packages a lot better organized in Java than the namespaces in .NET. They are easier to manage and maintain in Java because they are contained in the same folder structure. In .NET, you can give any namespace inside an assembly, give the same namespace in 2 assemblies, and this really does not guarantee easy management. If you want to look for something - you don't know where to look :)
Hi!

mayankeagle :
As I said for me relating to JAVA namespaces, it's just a matter of practice... :)

I actually use that ability on my projects.
Usually I use a plug-in approach to add functionalities to my compiled solutions.
Sometimes I want to add classes inside namespaces that are defined on the main solution just because they belong there.

It's like everything else... misused can conduct to a namespaces maze, you just have to be consistent.

This weekend I'll put some time on this :)
Lets see how it turns out...

Alex
>> misused can conduct to a namespaces maze

Yes, that is true. Having it in a hierarchical manner by default helps.
I don't want to stretch more this Namespaces matter, just want to add that looks like VB.net acts like JAVA.
In VB.net you don't have access to the main namespace, it always begins with the project name.
So the idea is just that.... VB.net presented as a language as powerful as any other .net managed language, it's more focused on helping developers doing more thing behind the scenes.
C# on the other hand is more wide when it comes to let devs really do what they want, even if it's wrong... eheheheh

Btw...
I just got 2 books:
The JAVA programming Language 4th Edition
The JAVA Language Specification 3rd Edition

They seemed the top notch... :)

Thanks!
Alex
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thank you all...
I've been way over my head these days.

The link are noted tho, and I'll give them a try as soon as I can spear som time on them.

Once again,
Thanks!

Alex :p