Win a copy of Escape Velocity: Better Metrics for Agile Teams this week in the Agile and Other Processes forum!

Mansi Vyas

Greenhorn
+ Follow
since Jul 01, 2003
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
1
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 Mansi Vyas

Do we need to be familiar with exponent notation for the exam?
e.g. float f = 43e1;
Thanks for the info.
By the way, do u know where I can get information on the rules for precedence?
Thanks.
Mansi
Here's the code:
boolean b1 = false;
boolean b2 = false;
if (b2 = b1 != b2)
{
System.out.println("true");
} else
{
System.out.println("false");
}
The output for this code is: false. I'm confused as to why the expression b1 != b2 is evaluated first. What is the logic here?
Mansi
Bert,
This topic is from some time ago, but I had another question. What about the paramerters passed into the constructor? Shouldn't super() and this() also be allowed to access these parameters?
Mansi
I'm confused about the inner class being declared private. Here's the question:
What will happen when you attempt to compile and run this program:
public class Outer
{
public String name = "Outer";
public static void main(String argv[])
{
Inner i = new Inner();
i.showName();
}//End of main
private class Inner
{
String name =new String("Inner");
void showName()
{
System.out.println(name);
}
}//End of Inner class
}
1) Compile and run with output of "Outer"
2) Compile and run with output of "Inner"
3) Compile time error because Inner is declared as private
4) Compile time error because of the line creating the instance of Inner
The correct answer is option 4. I thought that the program would also generate a compile time error because Inner is declared as private, but it seems to work fine. Why is this the case?
Pls help.
Thanks.
Mansi
I'm having a hard time with this topic; more specifically, I'm having a hard time doing these problems quickly. Where can I get more practice on this topic?
Thanks.
Mansi
Hi Everyone,
Do we need to study the actual methods associated with the different collection classes (i.e. Vector, ArrayList, Hashtable...)?
Thanks.
Mansi
Hi Everyone,
Where can I get more info. on what the steps are for scheduling the 1.4 exam?
Thanks.
Mansi
Here there are 3 different mock exams for Marcus Green. These are for version 1.2 of the exam. Are there also 3 different exams for the 1.4 exam?
Mansi
Hi everyone,
What are some good mock exams for the 1.4 exam? Which ones are most similar to the mock exams in Bert and Kathy's book?
Thanks.
Mansi
Johannes,
addWidget() method is defined as static, so how can u use it in conjuction with this?
Mansi
I am confused about the rule which states: "You can access static variables and methods, although you can use them only as part of the call to super() or this(). (Example: super(Animal.DoThings()) )"
Why does the following code compile okay (p.327 - Exam Cram):
class Widget extends Thingee
{
static private int widgetCount = 0;
public String wName;
int wNumber;
private static syncronized int addWidget()
{
return ++widgetCount();
}
public Widget()
{
wNumber = addWidget();
}
}
According to this rule, shouldn't the compiler complain about the addWidget call of a static method in the Widget constructor?
Mansi
Mallige mentioned that the test was similar to Dan's exams. Based on past threads, I thought that Dan's exams were more difficult than the real test. I thought that Kathy's and Bert's book exams were more similar to the real test. Is this correct?
Mansi
19 years ago