chad stevens

Ranch Hand
+ Follow
since Aug 20, 2002
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by chad stevens

How can we detect using javascript if a user has clicked on the Stop button in their browser? If not, is there a workaround?
Thank you.
Michael,
Thank you so much! Wow, that was by far the greatest explanation I got on that topic!
Many thanks to your wisdom.
20 years ago
Thanks Gary,
That's pretty clear now, I suppose that you would only create a new instance when you will create and put new elements in, although, going through other people's code it seems to be quite common to see those 'wasted' assignments.
20 years ago
HI Michael.
Thanks for your reply, indeed my question was the first part, basically, are methods declared in interfaces abstract by default.. and do they need to be redeclared if not implemented in an abstract class that implements the interface, right on.
Your second point makes me think then that if you implement all methods in an abstract class, then why have an abstract class in the first place? Again, this returns us to the classic scenario of why an interface over an abstract class, and in particular, why have a design where you have an interface and then why an ABSTRACT class implementing it? Thanks again.
20 years ago
If you have an interface and then an abstract class which implements it. If you have a method in the interface called, "getPrice()" that would be that you don't need to redefine this method in the abstract class that implements it since it is already abstract since it resides in the interface? True or false? Some explanation would be great.
Thanks.
CHAD
20 years ago
Hi. I am a little confused about this basic question. Sometimes I see List theList = new ArrayList(); and sometimes I see List theList and then the list is getting values from somewhere without the new.. example

compared to:

What is the difference and when should we use the new and when is it just a waste of memory? Thanks.
CHAD
20 years ago
Hello Michael.
Sorry I did forget to mention the 'implements' part, I typed it up quickly, but yes, that was my intention.
Thanks for your response, you have clarified my thoughts, I was basically asking that question so that I can decided whether or not to put the get methods in the interface or not.
Thanks!
-- CHAD
20 years ago
Hi to all.
I am designing a music application. I am still not clear on some issues concerning interfaces and abstract classes. If anyone can help me understand, that would be great. Here is what I came up with:

Here is the abstract class:

The questions are as follows..
1) What if I don't define List getMiscChoices() as abstract in the abstract class as opposing to doing so? What can/would change in the implementation?
2) What if I do not define
public int getMusicChoiceRef();
public String getMusicChoiceNameDisplayed(); in the interface but just the last one, ie List getMiscChoices() as opposed to this design?
3) Can anyone see any optimizations I can make?
Thank you all for your help.
-- CHAD
20 years ago
How does Java work with Oracle? I was led to believe that Java works with JDBC, however, I know that drivers exist that can work with Oracle. I am correct? If so which one is it? And, can someone explain how Java and Oracle work together? Thank you.
21 years ago
Can anyone help me understand the following normal forms:
BCNF, 4NF and 5NF.
I have read a few good manuals and seen some examples but it gets confusing at these steps.
Kayla.
I think JSPSmartUpload can only be used with JSP I am not too sure about this, it's why I am posting! You are right, MultiParse does look complex.
21 years ago
How do you upload a file using a servlet?
21 years ago
Abadula,
I basically said I didn't know but to use a doGet but that in itself may be wrong.
21 years ago
Manish,
For your question number 3, I assume the question is no but you can access values of the variables in a different session indirectly using the "application context."
21 years ago
Hi Manish.
I have been told that you must be honest with others but more with yourself. If there is nothing else out there and according to you this is the first opportunity that comes your way within the last 3 months, take it. It all depends where you live. If you live in a city, then more opportunities should come your way. You must like what you do, and most important, the people you work with. You don't seem to be too thrilled about the interviewers bored looks. Maybe I got the wrong impression reading your mail. Many times they were going to hire me somewhere for a higher salary than another place but they were uncertain when the java project was going to start and that I was to do VB debugging until it starts. I didn't take this job, I took the other one. Why? Because I had a feeling that once the project isn't there it may never be there, so was the case when I found out 5 months later, and also when they start making you do something else then you may be stuck with it because you will know it more than the rest they hire later. The question is, do you have any other opportunities or will you have many? I would wait if so, if not, ask them you need 2 weeks to think about your offer. Wait for them to call you and offer you something on paper, all companies must do that. Once they give it to you, the ball is in your court the minute you walk out with it saying you must think about it. If you would sign it on the spot, it may give them the impression that you are desparate in a sense or are willing to accept their standards. If you at least take a few days, they will try their best to accomodate your needs. If you need to know more, let me know.
21 years ago