PDA

View Full Version : Java Resources



mburt
08-23-2006, 12:23 AM
Hi,

I have no idea how to code in Java. Could you provide some tutorials for Java. I think it's similar to JavaScript, but I have no idea.

Please help, and thanks :)

Twey
08-23-2006, 12:25 AM
I think it's similar to JavaScript, but I have no idea.Wrong. Very, very wrong. :p

It's a lot simpler, in my opinion. It's certainly more intuitive. Once you get The Java Way of Doing Things® you'll have no trouble.

The definitive resource is, of course, Sun's official tutorial (http://java.sun.com/docs/books/tutorial/).

mburt
08-23-2006, 12:28 AM
Thanks, Twey. I looked it up on Google once, but couldn't find a final answer :)

mburt
08-23-2006, 12:29 AM
Another question:

Does Java have the same make-up as JavaScript, semantics and syntax?

Twey
08-23-2006, 12:54 AM
Only on the same sort of level that PHP does, in that they both have a superficially C-like layout.

ddadmin
08-23-2006, 12:55 AM
Mike- nope, Java is a compiled language, more similar to C than JavaScript, which is a scripting language. The similarities between Java and JavaScript end at their names. Here's an introduction to Java (http://www.cafeaulait.org/course/week1/).

mburt
08-23-2006, 01:42 AM
Yes, I noticed it was alot like C.

jr_yeo
08-23-2006, 05:28 PM
i suppose this forum include JSP, JSF, NetBeans, Forte, Java Studio Creator and other technology that involves Java. :cool:

<edit>
almost forgot Eclipse.

jr_yeo
08-23-2006, 05:30 PM
Hi,

I have no idea how to code in Java. Could you provide some tutorials for Java. I think it's similar to JavaScript, but I have no idea.

Please help, and thanks :)
try this site (http://programmingtutorials.com/) too.

Twey
08-23-2006, 06:15 PM
i suppose this forum include JSP, JSF, NetBeans, Forte, Java Studio Creator and other technology that involves Java.I presume it's the Java platform rather than the Java language to which it refers, which includes languages like Groovy as well.

mburt
08-23-2006, 08:47 PM
Is there a way to compile Java without downloading the programs? (I tried the Sun program, but it was 50mb+, and I'm on a dial-up connection -_-)

mwinter
08-23-2006, 09:04 PM
You need to have an SDK (aka JDK), yes. I'm a dial-up user as well, so I understand your apprehension, but you'll just have to start the download and do something else for a few hours.

If you have a download manager (like GetRight), be sure to use it. If you already have the Java Run-time Environment (JRE) installed, you could use the Sun Download Manager instead (see the Notes at the bottom of the JDK download page).

Mike


By the way, the latest JDK is 49.52MB. There's also an on-line installer (33.70MB), which should allow you to omit some of the optional components (don't know personally: I've never used it).

mburt
08-23-2006, 09:09 PM
Also.. my internet is limited :)

mburt
08-23-2006, 09:10 PM
I'm downloading it now, and it's been downloading for 7 minutes, and it's only at 5%..

Twey
08-23-2006, 09:13 PM
Then it'll take you another 122 minutes to finish :)

mburt
08-23-2006, 09:16 PM
Don't remind me..

Twey
08-23-2006, 09:32 PM
Lol, that's nothing -- the longest download I've done was three weeks...

mburt
08-23-2006, 10:40 PM
And then, of course, the phone needs to be used for some reason, so I have to disconnect, and the download goes... well.... ka-poof!!

Twey
08-23-2006, 10:46 PM
Hence the recommendation of using a download manager :)

mburt
08-23-2006, 11:04 PM
Good idea :) I need it.

mburt
08-23-2006, 11:08 PM
Doesn't it seem weird that the "GetRight" download manager program, is only 364kb?

http://www.getright.com/get.html

I think I may have clicked the wrong link..

mburt
08-23-2006, 11:10 PM
Nevermind. It downloads the rest, inside the download manager... That's clever :)

Twey
08-23-2006, 11:30 PM
Lol, it's not unusual ;)

tacmig99
08-24-2006, 01:22 AM
lol, I switched away from dialup about a month ago and I love it:cool: Also in a week my plan is getting changed to be even faster with a lot more bandwidth.
It's strange that you use dialup with bandwidth limits though, every ISP I can think of has no limit for dialup. When I had dialup it has this very annoying feature to auto disconnect me if I idle too long, making it impossible to download large files even if I felt like starting the download and sleeping for half the day:mad:
Oh and if you're using FireFox I remember there being a very good download accelerator but I can't remember the link :(

mburt
08-24-2006, 01:32 AM
The download manager I have now has an acceleration patch in it :)

Twey
08-24-2006, 10:49 AM
When I had dialup it has this very annoying feature to auto disconnect me if I idle too long, making it impossible to download large files even if I felt like starting the download and sleeping for half the dayThere are "finger" utilities that exist to "prod" the ISP every so often to keep your connection active.

mwinter
08-24-2006, 11:10 AM
The download manager I have now has an acceleration patch in it :)

It won't benefit dial-up. Segmented downloading is a means of breaking up a file into parts (segments), and requesting each part from a mirror. The idea is that by spreading the load across multiple servers, especially if those servers are busy, the user can achieve faster download speeds: a heavily taxed server may not be able to upload to the full capacity of a broadband connection. However, dial-up users aren't going to strain servers in the same sense. The overall download speed isn't likely to increase unless the server is running exceptionally poorly.

There is another issue: each new connection will have its own overhead. You don't just recieve 250KB, for example, when downloading a file that's listed as that size. The file is broken up into packets, each of which has extra data attached. Moreover, due to the nature of TCP as a reliable transport protocol, there's extra network traffic as the protocol notifies the sender of errors and acknowledges successful receipt.

Mike

jr_yeo
08-24-2006, 09:44 PM
I presume it's the Java platform rather than the Java language to which it refers, which includes languages like Groovy as well.
what's the difference between Java platform and Java language? doesnt they refer to the same thing?

mburt
08-24-2006, 09:46 PM
"doesn't they"

I think that's grammatically incorrect :)

jr_yeo
08-24-2006, 09:51 PM
okies...my mistake :cool:
don't they refer to the same thing?

mwinter
08-24-2006, 10:09 PM
don't they refer to the same thing?

No. See Java Platform (http://en.wikipedia.org/wiki/Java_Platform) and Java programming language (http://en.wikipedia.org/wiki/Java_programming_language) at Wikipedia, though for comparing the two, Programming language (http://en.wikipedia.org/wiki/Programming_language) might be a better overview.

You should only need to read the introductory paragraphs to get your answer.

Mike

jr_yeo
08-24-2006, 10:17 PM
not much of a technie guy myself :cool: could somebody else explain it in layman's (layperson's) terms? tnx.

Twey
08-24-2006, 10:19 PM
what's the difference between Java platform and Java language? doesnt they refer to the same thing?Not at all. The standard Java compiler (javac) and most others compile Java down into bytecode; that is, a binary interpreted language. This is what gives Java its platform independance. The Java "virtual machine" then runs the bytecode as if it were a CPU, translating it into native code appropriate for the real platform. This doesn't have to be true, however; it is theoretically possible to write a compiler for the Java language that compiled directly native code.

On the other hand, we have languages like Groovy that compile down into Java bytecode (which can interoperate fully with Java bytecode compiled from the Java language). These languages aren't Java, but their output will run on the Java platform.

jr_yeo
08-24-2006, 10:21 PM
tnx. :cool:

<edit>
if others wont mind, i beg the question. can others post questions relating to JSP, JSF and other stuff like how to connect to Tomcat or how to use Ant, ANTLR, maven and jikes.

Twey
08-24-2006, 10:47 PM
Of course, it's all Java related.

jr_yeo
08-24-2006, 11:17 PM
which is all m really trying to say :cool:

[edit]
trying is the keyword.