Teen Programmers Unite  
 

 

Return to forum top

Info on Java

Posted by ArcticWind [send private reply] at July 04, 2002, 08:49:34 AM

im thinking about learning java, i already know alot of c++
but does anyone know of some good things about java and how
java differs from c++?

Posted by CodeRed [send private reply] at July 04, 2002, 11:19:31 AM

Everything in java has to be enclosed in a class, you can't just have functions (methods) lying around, they have to be member functions of a class.

Posted by vladimir_l [send private reply] at July 04, 2002, 12:19:00 PM

Good thing about Java you probably already know is its bytecode compiled and interpreted.

-Vlad

Posted by ArcticWind [send private reply] at July 05, 2002, 12:15:54 AM

are the native code or java to c compilers any good?
and does java have a preprocesser like c/c++?

Posted by CodeRed [send private reply] at July 05, 2002, 12:20:38 AM

I don't think java has a preprocessor, no. If it does I've never heard of it. The one thing I really like about java is the javadoc program that comes with it. Automatically creates documentation of your code

Posted by ArcticWind [send private reply] at July 05, 2002, 12:41:54 AM

is it possible to make a hack like a class coded in c to use pointers?

Posted by CodeRed [send private reply] at July 05, 2002, 12:49:27 AM

Um, I guess, but why? Just use C++ and make all the classes you want

Posted by ArcticWind [send private reply] at July 05, 2002, 06:41:47 AM

i just looked at the website, do they really expect me to download 30+mb to code in java?

Posted by unknown_lamer [send private reply] at July 05, 2002, 10:26:57 AM

You can automatically document C++ programs with several tools. A lot of people use Doc++, which just happens to work with Java too.

Posted by CodeRed [send private reply] at July 05, 2002, 11:56:28 AM

They don't expect you to do anything. They're offering their product for free, you can take it or leave it.

Posted by ArcticWind [send private reply] at July 05, 2002, 12:02:29 PM

actually if one wants to code in java they WOULD expect you to download it or hope you do

Posted by CodeRed [send private reply] at July 05, 2002, 12:05:24 PM

Or if you're too lazy to take 2 minutes to download it you could buy Forte. But what I suggest is to get the SDK off of sun.java.com then use TextPad (also free) as your editor/compiler/interpreter

Posted by ArcticWind [send private reply] at July 05, 2002, 12:08:13 PM

2 minutes to download a 30+mb file?

Posted by CodeRed [send private reply] at July 05, 2002, 12:09:59 PM

For most people even less than that

Posted by CodeRed [send private reply] at July 05, 2002, 12:11:23 PM

At home I've only got 56k, thats why when I want something big I get it at school, Dual OC48 pipes, If the net is slow there it's on the server side

Posted by mrnorman [send private reply] at July 06, 2002, 02:52:38 PM

One good aspect of java is the java native interface, which you use to incorporate compilations from other languages (such as C/C++) into your java program. So in reference to the C++ pointer hacking question, you could, but it wouldn't work like you want it to because although java is relatively platform independant, the C/C++ code and pointers will not be. So you might as well write the whole hacking program in C and make different versions for hacking different systems.

Posted by taubz [send private reply] at July 06, 2002, 05:47:35 PM

And remember, TPU now has a Java Learning Group, so head on over there if you're interested. :)

Posted by vikram_1982 [send private reply] at July 13, 2002, 11:10:33 AM

We had a programming language called Oak. It was "renamed" as Java in 1995. Though , it was officially called a "rename", quite a lot of changes were made to it. So, u can probably call Oak as the predecessor of Java.

Java has close links to C++. U can probably call C++ as an uncle for Java - not directly related, but has its features.

Posted by CodeRed [send private reply] at July 13, 2002, 01:04:57 PM

It's syntax is nearly identicle, even many of the reserved words are the same

Posted by mrnorman [send private reply] at July 13, 2002, 04:26:55 PM

However, java is much different that C++, being that it is compiled into a completely different type of code that's to be run on a virtual machine rather than to the actual machine code. Only the syntax is close to the C++ language.

You must be logged in to post messages and see which you have already read.

Log on
Username:
Password:
Save for later automatic logon

Register as a new user
 
Copyright TPU 2002. See the Credits and About TPU for more information.