Page 7 of 13 FirstFirst ... 45678910 ... LastLast
Results 61 to 70 of 125
  1. #61

    Default Re: ADVANTAGE OF JAVA OVER C# and VICE-VERSA


    @benjymouse nice list bro, also C# 3.0 has Object Initializers

  2. #62

    Default Re: ADVANTAGE OF JAVA OVER C# and VICE-VERSA

    Quote Originally Posted by cold_fusion
    -In C# your are tied to Micro$oft.
    -Java can run on almost all mobile phones while C# don't
    -Java can run on your browser.
    -Java can run on high-end embedded devices/microprocessors

    That is all I can think of now. My point is Java is more portable than C#. Both are OO and with good GUI support.
    Java is tied to a JAVA VIRTUAL MACHINE.
    If the PC don't have JAVA installed, you can't run JAVA.

  3. #63

    Default Re: ADVANTAGE OF JAVA OVER C# and VICE-VERSA

    Quote Originally Posted by benjymouse
    Features of C# which do not have a direct counterpart in Java:
    • properties
    • explicit interface implementation
    • operator overloading
    • implicit/explicit conversions
    • non-virtual (sealed) methods by default
    • verbatim strings
    • override/overload versioning support
    • true generics with no type erasure - also supports value/primitive types without boxing
    • value types (stack-allocated with copy semantics)
    • ref and out parameters
    • P/Invoke - integration with native APIs without the need for special adapter code like JNI
    • pointers and unsafe code
    • anonymous methods, closures
    • delegates (object oriented method pointers)
    • yield (limited continuations)
    • free file organization
    • partial classes
    • static classes (static classes has a different meaning in Java)
    • decimal type
    • unsigned numerical types (Java's "byte" is signed - go figure)
    • nullable types
    • namespace qualifier ::
    • goto statement (no kidding!)
    • everything is an object
    • checked / unchecked
    • preprocessor directives
    • indexers
    • alias imports
    • iterable arrays (Java arrays can be used with for-in loops through special treatment)
    • context aware and context bound objects; user definable
    • extensible annotations (attributes/annotations can derive from other annotations)
    • true rectangular arrays (in addition to jagged arrays)
    • switch statement supports more types, specifically String
    • deterministic finalization (using statement)
    • LINQ expressions
    • extension methods
    • lambda functions
    • type inference
    • expression trees
    • anonymous types
    • implicit properties
    • class/collection/dictionary initializers
    • partial methods

    Features of Java which do not have a direct counterpart in C#:
    • non-static inner classes
    • covariance and contra variance in generics (but with the dreaded type erasure)
    • checked exceptions.
    • Anonymous inner classes
    • Enum as objects
    • Continue/break to label
    • Strictfp
    • Single class imports
    • Static imports

    As you can see, at language level C# is easily more feature rich than Java. This often translates directly into short, more concise code which is more readable and maintainable. However, the languages also have very much in common. By "direct counterpart" I refer to the fact that many of the "missing" features can be emulated using more code in the other language.

    Note, the base class libraries for each technology (Java - SDK and C# - .NET Framework) has many similarities but also many differences.
    Nice bro! Thanks for this.

    This is what I've been waiting for. Though we can easily search this in google, but it's nice to have posts like this here that we can discuss.

  4. #64

    Default Re: ADVANTAGE OF JAVA OVER C# and VICE-VERSA

    Ganahan kaayo ko ani niya oi.....
    chicks ni? nice man mo answer sa forum mka lingaw...
    actualy JAVA is better than C# period

    Quote Originally Posted by silent-kill
    c# is pushed by microsoft, java is pushed buy suns...
    Java is open source.. but how often do you check on how java's core is implemented?. how often do you contribute to java's progress?.
    tell me who used java here and checked in some java fix to their source control?. or implemented a new hardcore java API. and got accepted as part of java's core?. heehehe. its open source but you cant touch it. for your eyes only.

    i like c# cuz i dont do mobile apps. i like c# cuz of m$'s IDE rocks. i may use the mono version soon...
    java's default GUI and fonts looks crap on windows. looks crap on linux, looks crap on mac. (no pun)

    its more like a love at first sight thing. LOL. though i've used java earlier than c# but i fell in love with m$'s c#

    c# has great support for the Windows OS. it can run 98% as fast as C++ in terms of game dev.
    c# can run on Xbox360 with the new XNA game API. c# can access windows native APIs.
    C# mono can run winforms 1.1 http://www.mono-project.com/WinForms though its still lacking. its not like your going to use all the functionality inside a winform... how often do you code winforms with weird combinations of other sh*t?.

    its more of a "targeted" Operating system when you do development

    ASP.net C# can run on linux with apatche + MySQL with Mono.

    c# is not that bad. the only thing im a bit disappointed about is m$ stopping Managed Direct X development. though SlimDX is catching up. from where MDX stopped.. we'll see c# vs java when c# matures.

    OT: there was this interview... about microsoft's lead for vista asking "if c# is so great/powerful.. why was vista not built under c#?"... and the answer was " its not that c# is not capable of creating an OS its just that we have more C++ programmers (oldies), and takes too much effort switching from c++ to c# LOL".. hehehee.

    p.s i'm bias with c# LOL.

  5. #65

    Default Re: ADVANTAGE OF JAVA OVER C# and VICE-VERSA

    OT:

    Quote Originally Posted by dodie
    Java is tied to a JAVA VIRTUAL MACHINE.
    If the PC don't have JAVA installed, you can't run JAVA.
    C# is tied to .net
    If PC doesn't have .net installed, you can't run C# programs.
    Of course .net is bundled with XP.

    Microsoft .Net Runtime Version 2 is 22.42 MB
    Java Runtime Version 1.6 is 13.8 MB

    Of course I found .Net is better at performance (based on experience) and memory management (based on the unbiased article on the internet)...

  6. #66

    Default Re: ADVANTAGE OF JAVA OVER C# and VICE-VERSA

    ok ra ba ang performance sa C# running under Linux? Pareha ra ba when you run under Windows?

  7. #67

    Default Re: ADVANTAGE OF JAVA OVER C# and VICE-VERSA

    @javapenguin
    Naa difference sa performance using the following scenario in running the application:
    Windows-.Net and Linux-Mono
    Most benchmark testing claims that it runs faster in Windows.
    But I don't know sa performance if Windows-Mono and Linux-Mono nga scenario.

    I think dli pa pud fully supported ang .Net 3.0 sa Mono.

  8. #68

    Default Re: ADVANTAGE OF JAVA OVER C# and VICE-VERSA

    Quote Originally Posted by moz_k2
    @javapenguin
    Naa difference sa performance using the following scenario in running the application:
    Windows-.Net and Linux-Mono
    Most benchmark testing claims that it runs faster in Windows.
    But I don't know sa performance if Windows-Mono and Linux-Mono nga scenario.

    I think dli pa pud fully supported ang .Net 3.0 sa Mono.
    Which do you think runs better in Linux? C# or Java?

  9. #69

    Default Re: ADVANTAGE OF JAVA OVER C# and VICE-VERSA

    Quote Originally Posted by javapenguin
    Which do you think runs better in Linux? C# or Java?
    I think lisud man na nimo i-compare kay ang C#(Mono) is dili pa siya completo or equal sa Windows .NET. Daghan pa siya kuwang. Ang Mono lang gud karon is mao pa pag-sugod sa .Net 2.0. Mga basic namespaces lang ang iyang gi-include.

    I think C# is dili siya Write Once and Run Anywhere (WORA) paradigm. You need to re-compile it on both Linux and Windows.

  10. #70

    Default Re: ADVANTAGE OF JAVA OVER C# and VICE-VERSA

    Quote Originally Posted by javapenguin
    Which do you think runs better in Linux? C# or Java?
    I think Java because C# works better for Windows platform.

  11.    Advertisement

Page 7 of 13 FirstFirst ... 45678910 ... LastLast

Similar Threads

 
  1. Replies: 66
    Last Post: 11-12-2011, 07:28 PM
  2. facetime for mac to i4 and vice versa
    By king1 in forum Apple Devices
    Replies: 1
    Last Post: 02-04-2011, 01:36 AM
  3. Bad nga nahimong Good and vice versa
    By Sol_Itaire in forum General Discussions
    Replies: 14
    Last Post: 06-16-2010, 11:50 PM
  4. LOWEST RATE IN SHIPPING FROM US TO PHILIPPINES and VICE VERSA
    By cxtknight in forum General Discussions
    Replies: 0
    Last Post: 07-02-2009, 12:53 PM
  5. Replies: 7
    Last Post: 02-13-2009, 12:01 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
about us
We are the first Cebu Online Media.

iSTORYA.NET is Cebu's Biggest, Southern Philippines' Most Active, and the Philippines' Strongest Online Community!
follow us
#top