Image
 
linkedin_logo.png rss_logo.jpg
twitter_logo.png youtube_logo.jpg
Latest Additions
 
EH-Net Login
Welcome Guest.






Lost Password?
No account yet? Register
Who's Online
We have 58 guests and 3 members online
 
Advertisement

You are here: Home arrow Ethical Hacking Discussions and Related Certificationsarrow Programmingarrow Java (J2SE) vs. C#
EH-Net
May 18, 2013, 09:33:23 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Go back to The Ethical Hacker Network Online Magazine Home Page
 
   Home   Help Calendar Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Java (J2SE) vs. C#  (Read 8864 times)
0 Members and 1 Guest are viewing this topic.
N15M0
Newbie
*
Offline Offline

Posts: 16


I hack, to learn more. I learn more, to hack.


View Profile
« on: June 10, 2010, 02:34:31 PM »

I am quite fluent in Java, and I understand that apparently C# is similar(I have not attempted coding in C# before, hence this post)

Does anyone know how these two languages compare? Java runs under its own virtual machine, which can be very limiting if writing programs to use on other machines, but does C# have the same functionality?

Any input is GREATLY appreciated Smiley
Logged
yatz
Full Member
***
Offline Offline

Posts: 222


View Profile WWW
« Reply #1 on: June 10, 2010, 03:04:56 PM »

I may not know for sure but I have taken Application Design classes in college.

C# runs under .NET Framework, which is comparable to the JVM in usage.  The JVM though is designed to be platform-agnostic where .NET Framework typically only runs on Windows machines.  Also Java can use IDEs like NetBeans and Eclipse where C# you need Visual Studio.

In my opinion (and since I work almost exclusively with Windows environments), C# is easier to code and works better with the IDEs available.  There can be downsides to being platform-agnostic since you have to write code with this in mind.

I have used both though and cannot specifically condemn either one.  In terms of language, they are very similar.
Logged

"Live as though you would die tomorrow, learn as though you would live forever."

CCNA, MCSA, MCTS, Sec+, Net+, Linux+, CEH
N15M0
Newbie
*
Offline Offline

Posts: 16


I hack, to learn more. I learn more, to hack.


View Profile
« Reply #2 on: June 10, 2010, 03:14:12 PM »

Thanx for the reply yatz,

Is there any more complexities in C# compared to Java that you know of? Or are their packages, etc the same? Also, are there any relations directly to Windows, for instance any user relational packages, any system properties, or anything else of the sorts?

 :)I'd like to start coding in C# soon, very anxious...
Logged
secureseven
Jr. Member
**
Offline Offline

Posts: 79



View Profile
« Reply #3 on: June 10, 2010, 03:32:49 PM »

C# is pretty much EXACTLY the same. And although it does run on .NET, Mono is the open-source, cross-platform to .net
http://www.mono-project.com/Main_Page

Many Linux/MAC programs run on Mono written in c#, like Banshee, Tomboy. Which both run in Linux.

So use Mano is c# answer to cross-platform. So, these two are exactly the same in Functionality. Packages are different. I believe c# has a package for Raw Sockets, unlike java (java does have jpcap though, but terribly documented I think.)

Good luck.
Logged

http://twitter.com/mikesantillana
eLearnSecurity Team Member.
H1t M0nk3y
Hero Member
*****
Offline Offline

Posts: 864



View Profile
« Reply #4 on: June 10, 2010, 06:17:05 PM »

Microsoft lost the legal war against Sun about 6 or 7 years ago. They were modifying Java and called it J++ back then.

But they lost the lawsuit, they turn arond and created the .Net framework. Now, you don't see people coding in Visual Basic or in Visual C++ that much. They are now uisng C#.

I know Java extremely well and I have spent about 2 months last years coding in C#. My opinion is that Microsoft made C# as close to Java as possible. I personally learned C# in about 3 hours, so it gives you an idea how similar to java it is...

The real deal is to learn their respective frameworks, but their syntaxe is very similar.

I would go with Java. Your programs will easily run on every platform with using Mono...
Logged

OSCP, GPEN, GWAPT, GSEC, CEH, CISSP
zeroflaw
Full Member
***
Offline Offline

Posts: 208



View Profile
« Reply #5 on: June 11, 2010, 06:58:09 AM »

Syntax is mostly the same. Sure there are differences and stuff, but if you can code in java you should be able to code in C# fairly quickly. Like H1t M0nk3y said, you need to learn the different frameworks.
Logged

ZF
Ketchup
Hero Member
*****
Offline Offline

Posts: 1021



View Profile
« Reply #6 on: June 11, 2010, 05:05:07 PM »

I agree with everyone else.   The Express versions of Visual Studio are free.  I have been using those for most of my development as of late.  I haven't been able to justify the cost of a full VS.NET license. 

C# is almost impossible not to learn quickly.   The .NET framework is laid out very intuitively, I think.   This is very contrary to the Windows API, MFC and other MS frameworks.   
Logged

~~~~~~~~~~~~~~
Ketchup
N15M0
Newbie
*
Offline Offline

Posts: 16


I hack, to learn more. I learn more, to hack.


View Profile
« Reply #7 on: June 13, 2010, 08:49:08 AM »

Ah, thank you, I did not quite understand the diffrent between the two, and I was curious to how they differ from a technical perspective. Thanks everyone for the input! Smiley
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Page created in 0.078 seconds with 23 queries.
 
Exclusive Deal

sansfire13_245x90_cw90.jpg
SANSFIRE 2013
June 15 - 22

5% Off w/ Code: EHN_5

SANS Deals 4 EH-Netters
5% OFF Any SANS Course in Any Format!
Coupon Code: EHN_5 Including SANS Rocky Mountain 2013 & SANS Boston 2013
Polls
Compared to this year, 2013 will be:
 
Recent Forum Topics
EH-Net News Feeds
Latest Additions
 
         
Advertisement

© 2013 The Ethical Hacker Network
Joomla! is Free Software released under the GNU/GPL License.