Lisa Yanchunis

Greenhorn
+ Follow
since Nov 03, 2000
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 Lisa Yanchunis

Hello all,
I was wondering if anyone has come upon a UML tutorial, especially as it relates to RUP. Almost all of the tutorials I have seen are tool based "this is how you create xxxxxx". I am looking more for "this is the purpose of xxxxxxx", "this is how xxxxx is useful to help create xxxxxx", "this is how you analyze xxxxx to create xxxxx". The why, what and how for the UML not the tool. I realize there are good books out there but I was looking something more in a presentation format, perhaps to be given over several short sessions. It does not need to be highly detailed. I found "Analysis and Design with UML" ppt presentation from Rational the closest to what I am looking for but a little short in detail. I am afraid we will have to write our own but am hoping something close to what we want is already available.
Thanks in advance
Lisa
Why do you need to implement remote and local separately for just a difference in Exception throws? Why not a single method that throws one type if your local otherwise Remote?
Just curious.
Lisa
While not a full fledged IDE, TogetherSoft Community edition provides a lightweight IDE (it does compile etc). The advantage is a roundtrip engineering between your class diagrams and your code. A lightweight design and IDE tool. I have used the full fledged product (which I would love to own personally) and would recommend it to anyone doing design work for Java.
I have recently started my assignment and have a few general overview questions. My back ground is primarily in server side business objects (not data accessors- separate area).
1) Would it help to do some UML modeling of the objects before I begin implementation? I will probably do this either way because that is the way I am used to doing design.
2) Has anyone included their unit test code with their assignment? Did anyone do unit tests?
3) What books have you used for references? I have those that I used for my SCJP but would like to expand those. I particularly need a good swing reference as I have done very very little GUI work. Any good reference for data access would also be appreciated.
4) About how many hours total should I budget for starters? I would like to be able to finish my assignment by the end of September and have evenings and weekends to work on it.
Thanks in advance
Lisa

The test must truely be random. I see "hardly any IO questions" to lots of IO questions.
IO and threads were my weak point, so I of course got a lot (10 each I think) of IO and thread questions. Fortunately most of each were fairly easy questions. Those that were more difficult I could usually eliminate at least half of the answers. I ended up with 80% in IO and 85% in threads
Fundamentals I *thought* was my strong point. Although I didn't get a large number of questions, they were very hard and it was my worst section with 66%.
I ended up with an 84% so not so bad over all considering that I only really SERIOUSLY studied the last three week.
I used RHE as my primary source, JQ+ (averaging 75%) and online mocks (averaging 70% on Marcus Greens). I also spent the morning before the test going through all the packages for method signatures (very helpful in the end).
Good luck to all in your studies!
On to the developers exam....
Lisa
22 years ago
For the answer to 2)
public class Test(){
public int aMethod() throws Exception
{
int x=0;
throw Exception();
return x; // this will be unreachable
}
}
Theoretical question:
What happens if you pass the test and you don't like the score. You pay to sit again and you FAIL.
Do they take your passing score away?
just curious
One other note:
Another common reason for extending rather than implementing an interface is that there may be only ONE method that you want to implement from an interface with a large number of methods. If you extend it you only have to implement the one method you want to use (as an overriding method) and don't have to implement the remainder as you would have to if you implemented it.
Actually it is a quite common practice in the "real world"
Read the following thread for a common pattern in implementing beans
http://theserverside.com/patterns/thread.jsp?thread_id=1322
Lisa
Hmmm... a little cost/benifit analysis (which is a VERY good skill to learn in the programming business)
JQ+ cost/hourly wage = hours you have to work to buy it
Estimated time savings = rough guess would take me 3 hours to search out 8 good exams with extensive notes (very conservative estimate probably would end up spending a day)
You could add in the time savings in test preparation to the hours above... lets say conservatively 5 hours time savings in preparation.
hours have to work < 8hr savings BUY IT<br /> Hours have to work > 8hr savings DON'T BUY IT
I think I will order it TODAY!
$20.00 isn't much for an 8 hour time savings!
Lisa

Originally posted by Cindy Glass:
The variable first holds a reference to an object. Then it is used to create riddle. The riddle variable also gets a reference to the same object in line c. Setting first to null does not get rid of the reference in riddle, which is held until the end of the method.


Oh boy... i am confused now because I thought that sai was correct. Is not a NEW string object created when riddle is created (because of the "when is a" +). Strings are immutable (pounding this into my own head) so riddle cannot point to the same object as first but must point to a different object.
Help!
Lisa
I think you missed the question with the other reply's. They were asking about INNER classes. If you move the braces to make C an INNER class to A (shown below) it compiles and runs fine.

Originally posted by Roll:
<CODE><PRE>class A {
int a=1;
int b=2;
public int c=6;
public int d=3;
private int e=8;
private int f=8;
protected int g=10;
protected int h=11;
// this is your problem... class B is NOT an inner class of A
// } So I commented it out
class B {
int a1=c;
// int a2 =g;
// add the close of B then the close of A
}
// and close A
}
// get rid of this your referencing a non static variable from a static method... but that is another story
/*public static void main(String[] args) {
System.out.println(a);
} */
</CODE></PRE>
Compilation error:
B.java:15: Undefined variable: c
int a1=c;
Is it not possible to acces a public variable.
But as far as i know its said that public can be accessed inside or outside the class.Then,
Why iam getting a compilation errror.
Any suggestions or comments?



It makes complete sense that private methods can be "shadowed" in subclasses. Consider that you MAY NOT HAVE ACCESS to the actual code of the superclass. For instance, you wish to extend Object.. Object may full well have a method called reallySillyMethod() but you can't see it because it is private. There would be no way for you to know that there was a reallySillyMethod() (because it is private and invisible to you) on the superclass and that you couldn't implement one. So the compiler ignores the fact that the super has a method with the same signature and allows it.
Lisa
There is a typo on line 7. prinltn instead of println
public class Precedence{
final public static void main(String args[])
{
int i=0;
i=i++;//the value of i is used (i=0), then it is incremented(i=1), the original value is then assigned to "i" (i back to 0).
i=i++;// same thing
System.out.println(i);
}
}
o/p is 0
velmurugan's explanation is "=" has lowest precedence.
my question - even if values is not assigned ,value is incremented with"++" operator so why?
See above, i is incremented, but then i is assigned back to 0
Lisa