Win a copy of Micro Frontends in Action this week in the Server-Side JavaScript and NodeJS forum!

Gauri Tilloo

Greenhorn
+ Follow
since Jun 22, 2005
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 Gauri Tilloo

Hi, I am getting the following error when running the cruisecontrol:
Attempting to download strutstest-2.1.3.jar.
WARNING: Failed to download strutstest-2.1.3.jar.
The build cannot continue because of the following unsatisfied dependency:

strutstest-2.1.3.jar

I am using maven-1.0.2
14 years ago
I configured the cruisecontrol web application which
allows to browse build results & see some statistics.I am using maven 1.0.I
did this by using the tomcat.I am able to see the
build results but..my build fails everytime & it gives
me the following error:

[echo] Generating
C:/work_dir/checkout/NYDOC/Applications/Portal/ILS/target/docs/linkcheck.html
from
C:\work_dir\checkout\NYDOC\Applications\Portal\ILS\target\linkcheck\docs\linkcheck.xml
BUILD FAILED
File...... C:\Documents and
Settings\GTilloo\.maven\cache\maven-site-plugin-1.5.2\plugin.jelly
Element... maven:user-check
Line...... 121
Column.... 49
+------------------------------------------------------------------
| ERROR!
|
| You must specify a maven username in order to deploy
the site!
| You can either set this property in your
~/build.properties

| or specify one on the command line
|
| maven -Dmaven.username=${user.name}
[goal]+------------------------------------------------------------------


I am not able set this maven.username.I tried doing it
in the project.xml file but it doesnt work.Also
exactly what username i need to set??the one with i
access the cvs or some other??
Kindly hel me with the same.
14 years ago
Given the following code, how many objects will be eligible for garbage collection on the line with the comment //here

OPTIONS:
1)0
2)1
3)2
4)3
Answer is 0. Can any one explain how?


2)What will happen when you attempt to compile and run the following code?

options:
1)compile time error, the call to col has the wrong type
2)compilation and output of 1010
3)Compile time error Object cannot be cast to Integer
4)Compilation and output of 2020

Answer is 4. Pl. explain how?

( tags added, fixed formatting and missing brace)

[ July 08, 2005: Message edited by: Barry Gaunt ]
[ July 08, 2005: Message edited by: Barry Gaunt ]
Thank u all for the replies..this was a real strange thing i came across.
What happens when you try to compile and run the following program?

public class Prog1 {
public static void main(String[] args) {
int k = 1;
int i = ++k + k++ + + k;
System.out.println(i);
}
}

Select the one correct answer.

a)The program will not compile. The compiler will complain about the expression ++k + k++ + + k.

b)The program will compile and will print the value 3 when run.

c)The program will compile and will print the value 4 when run.

d)The program will compile and will print the value 7 when run

Ans-d
I am not able to get that how to resolve last + + k.
I tried to run this program and the output is also 7.
if we evaluate this then...i=2 + 2 + + 3
So does this mean that no matter how many + signs u put it doesnt m,atter & its not gonna affect the output?