Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tips for moving from C# to Java? [closed]

Tags:

java

c#

So I'm going to a job interview next week at a Java place, and would like to not come across as clueless. I'm a pretty confident C#/.NET developer and am (clearly!) willing to consider jumping ship to Java - I'd like links to resources people would recommend for doing this. I'm interested in answers to questions like:

  • Any guides that are a rough equivalent to Justin Etheridge's Ruby for C# developers? That was really useful when I decided I wanted to learn Ruby's rake (and thus at least a little Ruby). There seem to be more pages for people going the other way, though...
  • Which IDE to use? I've actually already bought my own IntelliJ because I love its HTML/CSS/JS, but haven't touched its actual raison d'etre of, well, "that Java stuff". I suspect the place I'm going to uses Eclipse, however. So - recommended resources to get up and running on a Mac or Windows (I'm not fussy)?
  • It's probably going to be a TDD coding interview; I guess JUnit is the de facto choice to learn a little about here?

Thanks in advance.

like image 886
Peter Mounce Avatar asked Jan 23 '09 00:01

Peter Mounce


People also ask

How long does it take to recover from C-section?

It takes about six weeks to recover from a C-section, but each person's timeline will be different. An incision — typically a horizontal cut made in your lower abdomen — can take weeks to heal. During that time, it's recommended that you avoid lifting anything heavier than your baby.

How many days after C-section does pain last?

At first, your cut (incision) will be raised slightly and pinker than the rest of your skin. It will likely appear somewhat puffy. Any pain should decrease after 2 or 3 days, but your cut will remain tender for up to 3 weeks or more. Most women need pain medicine for the first few days to 2 weeks.


2 Answers

Take a look at this link which details many of the differences between the two languages.

As for IDE many people like Eclipse or Netbeans (My favorite) - Both are free. As you already own IntelliJ you could try that.

FYO some of the main differences are:

  • Lack of properties / auto properties
  • No 'event' type (Different way of dealing with events)
  • foreach loop syntax
  • 'Generics' implementation
  • Checked exceptions

and probably many more :)

like image 53
Richard Walton Avatar answered Oct 15 '22 19:10

Richard Walton


IDE

You got IntelliJ. Believe me its the best. I used it for two years, then had to switch to some free thingy. I tried Eclipse, it was a pain, no offense just telling you my experience. Now, working with Netbeans, and I am quite happy, but still miss IntelliJ once in a day.

TDD

Yes, you are very much right about JUnit. After enough understanding, its good to look at other specialize libraries like HtmlUnit, DBUnit. Further, a code coverage tool like Cobertura, or Emma. As you must go with IntelliJ, you will probably like to check out Emma, as its having a good integration with the IDEA.

Transition

I don't think you will have a hard time in the transition. IMO, reading the docs and the specs will get you going. May be you can go for some books down the road, but as far as core Java is concern, reading API docs and specs will be a good start. You can make use of a SO to ask question. I have seen many questions like "C# equivalent in Java ..".

like image 45
Adeel Ansari Avatar answered Oct 15 '22 18:10

Adeel Ansari