Aarti Joshi

Greenhorn
+ Follow
since Mar 31, 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 Aarti Joshi

Hi All,
I'm new to JSP. Can someone plz tell me which book to use and is there any good onnline book?
I've just passed SCJP1.4 and want to learn JSP. How long it will take to learn it ? (I've done ASP in the past)
-- cheers
Aarti
20 years ago
JSP
congratulations David !
-- cheers
Aarti
20 years ago
Hi All,
Thank u all for all ur help, Kathey - Bert for your wonderful book and of ofcourse the Javaranch family. Without all your help the score was not possible...(how can i forget my hubby )
Today passed the exam with 91%. The questions on GC were difficult but rest of qts. were easy. Though you need to read each question carefully..such as static class declared within a method or final method overridden.
I bought the kathey's book last week and it is a great book !
I reffered khalid's book too but the language was hard for me to understand.
Solving the mock exam helped me lot.
--cheers
Aarti
20 years ago
Hi lawrence,
They DO tell the number of correct answers.
Just took the exam..got 91%...
-- cheers
Aarti
Thanks Jessica..now its clear to me.
-- Aarti
Hi,
The ~ operator inverts the bit to opposite bit. Then why is the answer to the question ~4 is -5 ?
It works like following, right ?
~00000000000000000000000000000100
= 11111111111111111111111111111011
-- cheers
Aarti
Hi all ,
In the examulator
exam , EACH multiple answer question has given the number of correct answers.
Will it be same in the real exam?
Will the interface be same in real exam too ?
-- cheers
Aarti
[ May 01, 2003: Message edited by: Aarti Joshi ]
HI,
Now its MY Typo...
Anupam , u r right. The correct answer is 4.
-- cheers
Aarti
[ April 23, 2003: Message edited by: Aarti Joshi ]
Hi,
I came across the question from Kathy's book..chapter 7 - SelfTest qt.2
class Test1{
public int value;
public int hashCode()
{
return 42;
}
}
class Test2{
public int value;
public int hashcode() // plz notice 'hashcode' lowercase 'c' in the method name.
{
return (int)(value^5);
}
}
Q. which statements are true ?
1) class Test1 will not compile
2) class Test2 will not compile
3) The Test1 hashCode() method in Test1 is more efficient than hashcode() in Test2
4) The Test1 hashCode() method in Test1 is less efficient than hashcode() in Test2
5) The two hashCode() methods will have same efficiency.
The correct answer is 3.
--Now my question is - Is it just typo error in hashcode() in Test2 method (lowercase 'c') or it is different method named hashcode()?
-- cheers
Aarti
[ April 23, 2003: Message edited by: Aarti Joshi ]
[ April 23, 2003: Message edited by: Aarti Joshi ]
Hi,
Yess Roger , i think there is another version of javac in the path.
Thomas , the version i see when i type java -version is "java version 1.3.1"
I've downloaded the new version 1.4.1_02 yesterday but didn't set the path.
-- Aarti
Hi-
its Java(TM) 2 Runtime Environment, Standard Edition 1.4.1_02.
-- Aarti
Hi,
When i tried to compile the program using following command --
>javac -source 1.4 Speed.java
-- It says --
jacac : invalid flag : -source

--
Hi all,
Can anyone tell me how to compile and run the following assertion program ?
----
public class Speed {
public static void main(String[] args) {
Speed objRef = new Speed();
double speed = objRef.calcSpeed(-12.0, 3.0); // (1a)
System.out.println("Speed (km/h): " + speed);
}

/** Requires distance >= 0.0 and time > 0.0 */
private double calcSpeed(double distance, double time) {
assert distance >= 0.0; // (2)
assert time >0.0 : "Time is not a positive value: " + time; // (3)
double speed = distance / time;
assert speed >= 0.0; // (4)
return speed;
}
}
-- I got the following errors..
C:\Aarti\Speed.java:13: ';' expected
assert distance >= 0.0; // (2)
^
C:\Aarti\Speed.java:14: ';' expected
assert time >0.0 : "Time is not a positive value: " + time; // (3)
^
C:\Aarti\Speed.java:16: ';' expected
assert speed >= 0.0; // (4)
^
C:\Aarti\Speed.java:13: cannot resolve symbol
symbol : class assert
location: class Speed
assert distance >= 0.0; // (2)
^
C:\Aarti\Speed.java:13: distance is already defined in calcSpeed(double,double)
assert distance >= 0.0; // (2)
^
C:\Aarti\Speed.java:14: cannot resolve symbol
symbol : class assert
location: class Speed
assert time >0.0 : "Time is not a positive value: " + time; // (3)
^
C:\Aarti\Speed.java:14: time is already defined in calcSpeed(double,double)
assert time >0.0 : "Time is not a positive value: " + time; // (3)
^
C:\Aarti\Speed.java:16: cannot resolve symbol
symbol : class assert
location: class Speed
assert speed >= 0.0; // (4)
^
C:\Aarti\Speed.java:16: speed is already defined in calcSpeed(double,double)
assert speed >= 0.0; // (4)
^
9 errors
Tool completed with exit code 1
-- thanks
Aarti
[ April 22, 2003: Message edited by: Aarti Joshi ]
Hi,
Good luck for your exam !
-- cheers
Aarti
Hi all,
Is there any site other than JavaPrepare where I can find questions by topic ?
-- cheers
Aarti