Renuka Parmar

Greenhorn
+ Follow
since Jun 26, 2003
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 Renuka Parmar

Hi,
I am new in this forum. I have difficulty in Tomcat4.0installation.
I did every step according to SCWCD exam studykit book.
I got error on A.5 step.
I was trying to run
C:\scwcd\jakata-tomcat-4.0.1\bin>startup
it gives
OUT OF ENVIRONMENT SPACE
USING CATALINA_BASE:
USING CATALINA_HOME: c:\SCWCD\JAKARTA-TOMCAT-4.0.1
USING CLASSPATH:
USING JAVA_HOME: C:\JDK1.3.1
Please help me.
Thanks in advance
Hi,
Recently,I have qualfied SCJP1.4
I am entitled to work in Uk.
I am looking for workplacement or voluntary work in JAVA
around Hertfordshire Or London.
If someone able to help me
Please reply me on my e-address
renuka_73@hotmail.com
Thank you
Renuka
[ December 01, 2003: Message edited by: Renuka Parmar ]
20 years ago
Hi,
Sorry for mistake.
I am bit confused.Because in K&B's Book the answer is only C.
Thanks
[ July 25, 2003: Message edited by: Renuka Parmar ]
Thank u Anupam Sinha
Hi,
I have Query based on hashing algorithm from K&B'sBook(Pg-447 self-test).
class Test1 {
public int value;
public int hashCode(){
return 42;
}
}
class Test2 {
public int value;
public int hashCode(){
return (int)(value^5);
}
}
Which is true?
A. class Test1 will not Compile.
B. The Test1 hashCode() is more efficient than the Test2 hashCode().
C. The Test1 hashCode() is less efficient than the Test2 hashCode().
D. class Test2 will not compile.
E. The two hashCode() methods will have the same efficiency.
I thought statement E is true.
But Answer is C.
Please somebody explain me.
Thanks
Renuka
[ July 25, 2003: Message edited by: Renuka Parmar ]
Thanks to all of you.
Hi,
Following code is from K&B(self-Test):-
class Prac1{
public static void main(String[] args){
int x =0;
int y=0;
for(int z=0;z<5;z++){
if((++x >2) || (++y >2)){
x++;
}
}
System.out.println(x + " " +y);

}
}
Output: 8 2
Could somebody tell me How is this works?
Thanks
implicity = small-value-into-large-container;
e.g: byte b = 4;
int i = b;// byte value fits in an int
explicity = large-vale-into-small-container;
e.g: int i = 20;
byte b = (byte)i;
Hi,
Following code is from K&B's book(pg-180):-
class Logical{
public static void main(String[] args){
boolean b = true && false;
System.out.println("boolean b= "+ b);
}
}
Output is: boolean b= false
Output of this code confused me. I think,
b = true,because && takes first operand(true) Or if b is true then it print default value of boolean b= false.
Could somebody explain me.Why it print false?
Thanks