Anantha Krishna

Greenhorn
+ Follow
since Dec 20, 2000
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Anantha Krishna

Hi arch correa,
It' really great!!!. Congrats for you.i am planning to take the exam on 7th Jan. It woul be helpful to me if you could please send me the JLS at [email protected].
Thanks in advance
Anantha
24 years ago
Hi guys,
I called up the Sun educational services here at CA. They told me not to worry about this issue. They told me there is no change in syllabus for the programmer's certification. They also told me take the exam as I am planning to take the exam by Jan 7th. I have postponed.
So no more confusions.
bye
Anantha
Hi all,
I called Sun educational services(1-800-422-8020) as well as 1-800-795-3926). I asked them about the change in syllabus. They told they didn't know anything about the change in syllabus. They told me only the duration is changed to 120 minutes.
I asked them if I can register for the exam on 7th Jan 2000 and if there will be change in syllabus. They told me to register.
Can any of you tell me the site where there is Syllabus change mentioned. I searched sun site. But I couldn't find any change.
Thanks and regards
Anantha
Thanks Bill for explanation
It's straight forward as you told. I will go throught the sites you have given.
Thank you again
Anantha
Hi,
Can you please suggest some material on threads. Currently I am reading Khalids and R&h. But it is not covering various examples.
Please help me out
Thanks and regards
Ananth
Hi all,
When I try to run the code using t.start() the output is about both main thread and the child thread. But when I try to run the code with t.run() then the out put is just about the child thread.
Can any one tell the reason why is this behaviour.What is the difference between calling t.start() or calling t.run() directly.
class counter implements Runnable
{
private int currentvalue;
private Thread t;
counter(String threadname)
{
currentvalue=0;
t=new Thread(this,threadname);
System.out.println(t);
t.run();
}//this is for the constructor
public void run()
{
try
{
while(currentvalue<5)
{
System.out.println("The thread's name is"+t.getName()+":"+(currentvalue++));
t.sleep(500);
}
}catch(InterruptedException e)
{
System.out.println("Thread is interrupted");
}
System.out.println("The child thread exitted");
}
public int getValue()
{
return currentvalue;
}
}//this is for the counter class

public class client
{
public static void main(String [] args)
{
counter c=new counter("Child");
try
{
int val;
do
{
val=c.getValue();
System.out.println("The main thread's value is"+val);
Thread.sleep(1000);
}while(val<5);
}catch(InterruptedException e)
{
System.out.println("Main thread interrupted");
}
System.out.println("Main exitted");
}//this is for the main method
}//this is for the class client
THanks & regards
Ananth
Hi,
It's working.
Thank you bill
Ananth
Hi Bill,
One more clarification. Is it possible to again reassign c to t
like this.
Tangelo t1
c=t;
and then do
t1=(tangelo)c
Thanks and regards
Ananth
Hi all,
I am not able to understand the casting procedures with respect to objects.
I have one top level class called citrus which implements sqeezable interface. And 3 subclasses lemon tangelo & grapefruit
In the following code
grapefruit g,g1;
citrus c;
tangelo t;
g=new grapefruit();
c=g;
g1=(grapefruit)c;//legal (1)
t=(tangelo)c//illegal. (2)
Its' confusing why statment 1 is legal and 2 is illegal(This is given in R& H).
Please help me out.
Thanks & regards
Ananth