PDA

View Full Version : Where is the JAVA on this board?



DenisGFX
12-10-2001, 02:06 AM
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.:confused:

SilentStrike
12-10-2001, 02:23 AM
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++.

nvoigt
12-10-2001, 02:43 AM
>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++ ;)

mithrandir
12-10-2001, 03:15 AM
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 :)

SilentStrike
12-10-2001, 01:00 PM
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.

DrakkenKorin
12-10-2001, 01:39 PM
I was under the impression C# was M$'s version of Java.

At least I was lead to believe by others.

-KEN-
12-10-2001, 03:29 PM
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"

SilentStrike
12-10-2001, 03:33 PM
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++.

gamegod3001
12-10-2001, 08:29 PM
>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.

SilentStrike
12-10-2001, 09:06 PM
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.


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;
}

Dissata
12-10-2001, 09:30 PM
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 :o get used to it:D

taylorguitarman
12-10-2001, 09:58 PM
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:


#include <stdio.h>

class CPlusPlus {
public:
void Main() {
printf("Hello World\n");
}
};

void main() {
CPlusPlus obj;
obj.Main();
}

Yoshi
12-10-2001, 11:00 PM
We are C akes, not Coffee.
-------------------
Engineer223

nvoigt
12-10-2001, 11:54 PM
>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.

SilentStrike
12-11-2001, 12:27 AM
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++.