geetanjali rajput

Greenhorn
+ Follow
since Apr 02, 2002
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 geetanjali rajput

i know nothing about vector . please help. let me know it's usage.
19 years ago
thanks anyway cindy,jim .what does typo means?
19 years ago
this is the code from Java Thread Programming written by Paul Hyde (Sams publication).please do check it for me. what's the actual purpose of using is.i don't think it's a printing mistake.but still thanks for yer help.
19 years ago
i forgot to ask the question: what does [ccc] means here.please help.
19 years ago
look at my code: public class ttAlive extends Thread
{
public void run() { for(int i = 0; i<10; i++) {
printmsg();
}
}
public void printmsg() {
Thread t = Thread.currentThread();
String name= t.getName();
s.o.p("name = " + name);
}
public static void main(String args[])
{
ttAlive tt = new ttAlive();
tt.setName("my worker thread");
s.o.p("before start(), tt.isAlive() =" + [ccc]tt.isAlive());
for(int i = 0; i<10; i++)
{
tt.primtmsg();
}
s.o.p("at the end of main(),tt.isAlive()="+tt.isAlive());
}
}
19 years ago
my code is compiling & running. but i really should thank u. thank u very much.
19 years ago
to dave,
this is the exact copy of my code except some s.o.p stmt. in catch block but still if u want the exact code i will write .
to corey,
this code is fine and working. it doesn't show any nullpointerexception.i am confused in, why have the writer used ob1.t.isAlive() why not ob1.isAlive().this example is in the complete reference java2 written by patrick naughton &herbert
19 years ago
thank u very much for the help.
19 years ago
thanks i appreciate it. i will try this code but please explain the meaning of ob1.t.isAlive() in my code. the code i have written is in a book . i was unable to understand why didn't they used ob1.isAlive().if u think there is nothing wrong in implementing this (ob1.t.isAlive()) stmt. .tell me why.
19 years ago
i know how to implement interfaces but fail to understand why i need them when i have classes.please do help.
19 years ago

why i am using ob1.t.isAlive() ? why not ob1.isAlive().
similarly i am doing for join(). why?
(edited by Cindy to format code - PLEASE indent your own code)
[ April 03, 2002: Message edited by: Cindy Glass ]
19 years ago
i will post the code. still thanks for the help.
19 years ago
thanks i appreciate this.
19 years ago
thanks all of you.
19 years ago
i referred two books which use throw stmt while defining throws. does this mean we always use throw when we need to use throws stmt. . please help . i really need to know it's answer.
19 years ago