Thread: Where is the JAVA on this board?

  1. #1
    Registered User
    Join Date
    Dec 2001
    Posts
    11

    Where is the JAVA on this board?

    Hello guys/gals, I just registered over here and I noticed that there is no Java Board on here, why is that? Java is a popular language, therefore I think it is a good idea to put it up here?

    Can someone please tell me why is that? Just very curious thats all.

    Thank you for your time.

  2. #2
    geek SilentStrike's Avatar
    Join Date
    Aug 2001
    Location
    NJ
    Posts
    1,141
    It's C programming.com. Why there is a C# board and not a Java board is a good question however, as C# is much more similair to Java than it is to C++.
    Prove you can code in C++ or C# at TopCoder, referrer rrenaud
    Read my livejournal

  3. #3
    the hat of redundancy hat nvoigt's Avatar
    Join Date
    Aug 2001
    Location
    Hannover, Germany
    Posts
    3,130
    >Why there is a C# board and not a Java board is a good
    >question however, as C# is much more similair to Java than it is
    >to C++.

    Yes. But it's derived from C++ not Java. This is a C/C++ site. VB and Java are very popular, but not represented here, because we specialize in C/C++
    hth
    -nv

    She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."

    When in doubt, read the FAQ.
    Then ask a smart question.

  4. #4
    aurė entuluva! mithrandir's Avatar
    Join Date
    Aug 2001
    Posts
    1,209
    There are several good java boards around if you want one. Try www.javaranch.com for one. You could go to www.flashdaddee.com they have a decent Java board there as well.

    >>It's C programming.com <<

    Exactly

  5. #5
    geek SilentStrike's Avatar
    Join Date
    Aug 2001
    Location
    NJ
    Posts
    1,141
    Derived from C++? Please tell me you are joking. Can you write one C# app that a C++ compiler will compile?

    It's much more an "embracement and extension" of Java than it is in any way related to C++. Where is the multiple inheritance, the templates, the global functions? The multiple paradigm design that is a cornerstone of C++ is lacked by C#, much like Java. They basically took Java, added some small but useful things from C++ to it, like the destructor and operator overloading.
    Prove you can code in C++ or C# at TopCoder, referrer rrenaud
    Read my livejournal

  6. #6
    I was under the impression C# was M$'s version of Java.

    At least I was lead to believe by others.
    DrakkenKorin

    Get off my Intarweb!!!!

  7. #7
    Just one more wrong move. -KEN-'s Avatar
    Join Date
    Aug 2001
    Posts
    3,227
    yes, it DOES contain portions of Java in it. But then again it's still mostly C++ and VB. Plus, MS says it themselves: "C# is placed firmly within the C and C++ family of languages"

  8. #8
    geek SilentStrike's Avatar
    Join Date
    Aug 2001
    Location
    NJ
    Posts
    1,141
    Yeah, they didn't want to say, "we couldn't control Java, so we are making our own version of it." So they slap a C in the name and pretend it's an extension of C++.
    Prove you can code in C++ or C# at TopCoder, referrer rrenaud
    Read my livejournal

  9. #9
    .
    Join Date
    Aug 2001
    Posts
    598
    >Derived from C++? Please tell me you are joking. Can you write one C# app that a C++ compiler will compile? <

    Wait, I thought Deprived ment that it came from. Like C++ was deprived from C. Guess I was wrong.

    Can you compile C++ programms in a Java compiler.

    >It's much more an "embracement and extension" of Java than it is in any way related to C++. Where is the multiple inheritance, the templates, the global functions? The multiple paradigm design that is a cornerstone of C++ is lacked by C#, much like Java. They basically took Java, added some small but useful things from C++ to it, like the destructor and operator overloading.<

    Deprive a lanuge from C++, (pure OO) and see how much it looks like java.
    To Err Is To Be Human. To Game Is Divine!"

  10. #10
    geek SilentStrike's Avatar
    Join Date
    Aug 2001
    Location
    NJ
    Posts
    1,141
    Hmm, either you are making a bad joke or you mean derive, I can't figure out which one. Derive means to come from (Mathematical derivation of formulas, etc). Deprive means to withhold something, like to starve someone.

    Tell me the two langauges that you think are most similair. Notice that I did not say that Java was derived from C++, only that Java was as much C++ as C# is.
    Code:
    class Java {
          public static void main(String[] args) {
                 System.out.println("Hello World\n");
          }
    }
    
    class CSharp { 
          public static void Main(string[] args) {
                 Console.WriteLine("Hello World\n");
          }
    }
    
    #include <iostream>
    
    int main() {
            std::cout << "Hello World\n";
            return 0;
    }
    Prove you can code in C++ or C# at TopCoder, referrer rrenaud
    Read my livejournal

  11. #11
    monotonously living Dissata's Avatar
    Join Date
    Aug 2001
    Posts
    341
    okay I looked at the examples of silent strike
    I know C++, I know JAVA --- C# is so close to java that I was wondering out of my ignorance if C# supports any type of applet?

    Ignorant I know get used to it
    if a contradiction was contradicted would that contradition contradict the origional crontradiction?

  12. #12
    Fingerstyle Guitarist taylorguitarman's Avatar
    Join Date
    Aug 2001
    Posts
    564
    C# does come from the C/C++ lineage. But mixes as well.
    C++ was taken from both C and Simula67 concepts.
    Where Java was from C and Smalltalk (from Simula67).
    I'm guessing that C# would be pretty much the same lineage.

    In C++ you could do this as well:
    Code:
    #include <stdio.h>
    
    class CPlusPlus {
    public:
      void Main() { 
          printf("Hello World\n");
      }
    };
    
    void main() {
      CPlusPlus obj;
      obj.Main();
    }

  13. #13
    A Banana Yoshi's Avatar
    Join Date
    Oct 2001
    Posts
    859
    We are C akes, not Coffee.
    -------------------
    Engineer223
    Yoshi

  14. #14
    the hat of redundancy hat nvoigt's Avatar
    Join Date
    Aug 2001
    Location
    Hannover, Germany
    Posts
    3,130
    >Derived from C++? Please tell me you are joking.
    >Can you write one C# app that a C++ compiler will compile?

    No. And that's not the point. You can't compile a C++ app with
    a C compiler. And still they are one family of languages.

    >At least I was lead to believe by others...
    >I was wondering out of my ignorance...

    Yes, I see a lot of people judging by looks and by what other
    people told them. Please, go ahead and inform yourself.
    It's really hard to discuss features of a language with people
    just having an uninformed opinion on it. Get a book, get
    the language specification ( 250+ pages ) get the Beta or Release
    Candidate and test it yourself.
    No, you can't write applets. You can however write a variety of
    web-type applications. ASPX, Webservices and Controls.


    >Notice that I did not say that Java was derived from C++,
    >only that Java was as much C++ as C# is.

    Easy example from OOP 101: Human. Derived Worker and Teacher. Just because Worker and Teacher are very similar, they both were derived from Human.
    hth
    -nv

    She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."

    When in doubt, read the FAQ.
    Then ask a smart question.

  15. #15
    geek SilentStrike's Avatar
    Join Date
    Aug 2001
    Location
    NJ
    Posts
    1,141
    This looks like a valid C++ program that a C compiler will compile.

    int main(int argc, char* argv[]) {
    return 0;
    }

    Likewise, "all good C programs are also C++ programs" (Stroustrop). Conversely, no C++ program is a C# program, nor is any C# program a C++ program.

    In following fairly strict rules with design by contract, C++ is for the most part, derived from C. Good C code shouldn't have a problem compiling on a C++ compiler. However, neither Java nor C# will follow the basic same rules that C++ does.

    Sure, you can argue that the design of C++ influenced the design of C#, and there are definite similairites. All I am saying is that C# is much more similair to Java than it is to C++.
    Prove you can code in C++ or C# at TopCoder, referrer rrenaud
    Read my livejournal

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Multiple Java files for one Java project
    By doubleanti in forum Windows Programming
    Replies: 2
    Last Post: 11-22-2004, 02:06 AM
  2. C/C++ Vs Java
    By Spectrum48k in forum A Brief History of Cprogramming.com
    Replies: 18
    Last Post: 10-21-2002, 09:06 PM
  3. Java Board
    By Unregistered in forum A Brief History of Cprogramming.com
    Replies: 2
    Last Post: 03-28-2002, 05:47 PM
  4. Java Message board
    By darthxmark in forum A Brief History of Cprogramming.com
    Replies: 4
    Last Post: 01-23-2002, 03:15 AM