Fearless Leader said:Actually, in all fairness, Java is pretty much ONLY pointers.
(Hence, to create a new class, you MUST allocate using "new" and you do have to check for null).
If you already know C++, download the Java SDK, decompress the zipped src files and look at the code for all the classes. Those will give you more info than any book.
Yeah, except for the primitives. But it's simpler, since you don't have to do garbage collection.Fearless Leader said:Actually, in all fairness, Java is pretty much ONLY pointers.
JasonQG said:Yeah, except for the primitives. But it's simpler, since you don't have to do garbage collection.
Yeah, for the most part, the fact that everything's a pointer (or reference as Java calls it) is pretty much transparent. Usually, you can just forget that it's a reference. This can also be a problem, though, because people sometimes forget that when they call a function, they're not actually passing in objects, but references to objects. It can lead to an oops.Originally posted by ZepBrian
well thats good that u dont have to do that garbage collection crap.... just one less thing to worry about
CSChardcoresidd said:Hey Jason you go to Cal Poly?! Cause I do! Anyway whats your major CSC or CPE?
JasonQG said:CSC
You?
215? I just finished 315.hardcoresidd said:Im CPE, well I got to study for my comp arch final but thats pretty cool meeting someone from poly online.