Win a copy of Terraform in Action this week in the Cloud forum!

Elena Balland

Greenhorn
+ Follow
since Dec 21, 2000
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 Elena Balland

I want to thank all that do javaranch , Maha Anna, Green Marcus sites and other one with the mock exams, helpful and friendly advices. I think such forums gives a lot of support, encouragement and knowledge.
Here you can find an interesting questions worth to think about, you will find collegues that are knowledgable and eager to share their knowledge.
Even if you fail exam the most important if you received knowledge when preparing.
Thank you all and meet you on Developer discussion.
Thank you for reply, Varsha. I have not received reply yesterday when I was nervous reading all that I could find on Internet about threads before today's exam. I passed it from the second attempt. If I had the same exam in December I would pass for sure. The questions are twice less complicated than they were before, also they avoided put 4-6 questions in one. Of course, increased duration give you possibility to think, not ony to click.
If you made mock exams, study Complete Java 2 Certification of Simon Roberts, Philip Heller,Michael Ernest ( which is very good , but have a lot of mistypings) you will pass exam. With this exam as with the previous one I have also impression of incorrect wording and answers about which I notified Sun.
Please give me urgently mock test on these two topics. If you know very good resources(detailed) for threads I will appreciate it.
By the way,
Do not trust all the answers of this test.
For example, they consider that static methods could be overloaded, but not overriden. You can check it by running this program:
class Test {
static void show() {
System.out.println("static method in Test");
}
}
public class TestStatic extends Test {
static void show() {
System.out.println("Overridden static method in Q3");
}
public static void main(String[] args) {
TestStatic a = new TestStatic();
show();
}
}
If you slightly modify it and make either of this method static, then you will have compilation error for neither you can override static methods by non-static and vice verse.
I think the speed of this test Sun should for sure appreciate.
This my 2 cents.
I made the following code to test this question:
import java.awt.*;
public class BagConst1 extends java.applet.Applet {
void buildConstraints(GridBagConstraints gbc, int gx, int gy,
int gw, int gh, int wx, int wy) {
gbc.gridx = gx;
gbc.gridy = gy;
gbc.gridwidth = gw;
gbc.gridheight = gh;
gbc.ipadx = wx;
gbc.ipady = wy;
}
public void init() {
GridBagLayout gridbag = new GridBagLayout();
GridBagConstraints constraints = new GridBagConstraints();
setLayout(gridbag);
constraints.fill = GridBagConstraints.BOTH;
constraints.weightx =5;
// 1stButton
buildConstraints(constraints, 0, 0, 1, 1, 0, 0);
Button but1 = new Button("Button1");
gridbag.setConstraints(but1, constraints);
add(but1);

// 2nd Button
Button but2 = new Button("Button2 with ipadx");
buildConstraints(constraints, 0, 1, 1, 1, 80, 0);
gridbag.setConstraints(but2, constraints);
add(but2);

buildConstraints(constraints, 0, 2, 1, 1, 0, 80);

Button but3 = new Button("Button3 with ipady");
gridbag.setConstraints(but3, constraints);
add(but3);

buildConstraints(constraints, 0, 3, 1, 1, 0, 0);
constraints.insets = new Insets(20,60,40,40);
Button but4 = new Button("Button4 with Insets");
gridbag.setConstraints(but4, constraints);
add(but4);

buildConstraints(constraints, 0, 4, 1, 1, 0, 0);
constraints.insets = new Insets(0,0,0,0);
constraints.fill = GridBagConstraints.NONE;
Button but5 = new Button("Button5 without BOTH");
gridbag.setConstraints(but5, constraints);
add(but5);

}
}
When I compiled I received something strange:
ipadx doesn't effect, but ipady effects. Insets for sure effect.
It is pretty much fair that anchor is irrelevant for it is affects only when the component is smaller than its display area.
Congratulations, Alex.
I want to retake this exam, for me it was also hard although I went through all Marcus and Anna Macha and a lot of others mock exams.
Elena
20 years ago
If somebody can recommend me some interesting stuff about Java to put into introductory lecture ( tomorrow I have to present my trial version for the position of Java Instructor which is very important for me to receive). I want to give what amazing things Java can do and something not boring considered for beginner level.
20 years ago
Congratulations.
When I read all the successful stories I thought may be I had another exam than others. I also studied hard, went through all the most popular mock exams until I scored at least above 80%, but still I failed last week with 52%.
I had I think 10 questions on threads. I have a doubt in 2 questions if they have right answers. I sent twice emails to Sun about these questions but never received reply.
For me, non-Eneglish native speaker it takes time to read all 4-6 answers. As well it takes time to movr exhibit window which is placed right on the question. For me time was not enough to think everything over. I am over 40 and my reaction is not so quick as it was in 25.
But most discouraging is the silence of Sun. I think at least I deserve respond.
20 years ago