This week's book giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Building Blockchain Apps and have Michael Yuan on-line!
See this thread for details.
Win a copy of Building Blockchain Apps this week in the Cloud/Virtualization forum!

David Basile

+ Follow
since Mar 09, 2001
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by David Basile

I have followed the instructions you have given(for IE 5.5 Advanced settings). The console and JIT were already checked but I am still getting a blank space. The only thing that shows is a black, thin-lined border and a little multi-colored emblem in the upper left-hand corner. This is not the only applet or animated item on the web that I am unable to view. I have gone to mock test sites that are conducted with applets and get the same problem. Any further suggestions would be appreciated.
thanks in advance!
18 years ago
Sounds like a lot of people here are paranoid about Java in the marketplace.
First of all, the market is pretty unpredictable right now(in U.S) so you might not want to jump to any conclusions. Also, if you are planning to make a career in the IT market, you might want to consider the fact that learning Java and getting certified in it(which also helps you really learn it) can only compliment your resume. Hopefully, most people in this forum are not planning on focusing on only one programming language and expecting to land their first job with that language. The odds are probably against you if you plan to do that, especially with the market down right now.
It is fun to learn this language compared to learning a legacy's like COBOL. However, having a diverse education in computer programming(and anything else) can help you more than anything. It all depends on the prospective employer. Some like that you know Java and Cobol, some want you to never have touched Cobol.
I'm an insurance minded type person and believe in trying to cover all my bases i.e. learning more than one particular language so that I am more marketable.
I plan to get certified even though I use Java at work because there are many things that we don't use at my workplace in the Java language. A lot of things are left out.
After I get the SCJP, I plan on working on SQL and Oracle certification because I don't get any exposure to working with these databases. How am I going to answer questions on a phone interview about SQL and Oracle if I don't know anything about it?
Maybe the company has departments that focus on these and other departments that focus on Java, but if they are including questions on them, I better have an answer is my opinion.
Good luck to everyone job hunting. Although I am already employed, I am job hunting also since I want to get away from programming in COBOL(we use Java and Cobol at work).
I agree with everyone that says Java will be around for some time yet, but I also believe that with the way the market is right now, we could all use a little luck.
19 years ago
Thank you all! That helps a lot. I understand the "is a" and "has a" but was forgetting to put Inner Classes in the concept of class members for "has a". I also learned that is advantageous to have the inner class in the outer class so that when they are saved they are saved in the same file, which makes good sense.
There is only one copy for static numero;
For example, you can access it by saying Q2.numero so it is visible within the Q2 class. However, if you reassign it a value by using the prefix(++Q2.numero) then it will show the results for both Q2.numero and Q1.numero in your System.out.println statement. This is because there is only one memory address allocated for the numero variable, so any reference to it that changes it, will change the value that is being stored, therefore, Q1.numero reference to it will display a value change as well. See the following code:
public class Q2 extends Q1
//static int a = numero;
public static void main(String argv[])
//static int a = numero;
System.out.println("Q2.numero= "+ Q2.numero + "
Q1.numero = "+Q1.numero);
//System.out.println("Q2.a= "+ Q2.a + "
//Q1.numero = "+Q1.numero);

If you wanted to change the value for it in only Q2, you would have to assign it to a different variable first(see //comments in above code - uncomment those and comment out lines with
System.out.println("Q2.numero= "+ Q2.numero + "
Q1.numero = "+Q1.numero);
Try this out and see what happens. When you uncomment the line
//static int a = numero;
you are assigning the numero value to int a without using Q1.numero as a reference. This tells me that numero is inherited
and visible within Q2 but ultimately there is only one memory location for the static variable numero.
Also, you'll need to use the prefix operator(++a) instead of a++ to see different value results that help illustrate things.
I'm going to have my test on Monday and have been reviewing all week. I'm a little confused on the benefit of using things like Inner classes and Local Classes. I understand the concept of subclassing, for example, parent class pet has an owner, subclass cat has what parent class pet does and then some of its own unique members, etc. As the RHE book and some others give these type of examples, such as Outer Class has Inner Class, etc. I don't understand what benefit it offers. Why wouldn't someone just sublass a parent class instead of doing nested classes? I am feeling a little unconfident as I feel I may not retain what I have learned due to not understanding the reasons to use nested classes vs. subclassing.
Can someone please offer an example that will help clarify this for me?
Thank you.
Thank you very much, Jane and everyone on this question!
I've seen the references to the JLS in other postings on this site, but never referred to it(boy, do I feel foolish!). The JLS seems very thorough in its explanations and serves as a good complement to the books I've been reading and these types of forums.
If these three classes are created in three separate files, however, the output after you compile and run the t class will be
I believe this has something to do with either dynamic binding or the subclass t2 hiding t1's amethod. I'm also a bit confused as to why this outputs 3 for tins.amethod call.
may have some useful info, but I'm not sure I understand if it relates to this since this one does not have static methods. My guess is that t2's amethod hides t1's amethod.
Can someone please clarify for us on this? Much thanks.
That's really interesting and helpful!
I played around with that code and set the seek method as and suspected that it should output 5 for the System.out.println(r.readInt()) which it did!
with the r.readInt part of this it reads the 4 bytes that follow the first 2 bytes, so you end up with 0000......0101, which is 5.
Thank you for the helpful explanation of this!!! I'm taking the SCJP test in 10 days and have been lacking in this objective(and a few others).