mohammed usman

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

Recent posts by mohammed usman

Hi swaminathan,
The questions were pretty easy. I have learnt "The Complete Java2 " by simon roberts and attended lots of mock exams. one
question about gridbag layout was confusing. Another regarding
the Stack was confusing. other than that every thing was easy.
All the best
with regards
usman
Hi All,
I have cleared my SJCP with 90% of marks and it was really thrilling. Thanks for every one who have cleared my doubts regarding the examination.
with regards
Usman
Hi,
I got a small doubt.
Does a thread stops its execution because of InterruptedException.
I will be happy if some one clear this doubt.
thanks in advance
usman
Hi all,
I still have doubt about the filling the answer in the text field
in the sjcp.
1. If we need to give a syntax
say
super(i)
do we need to give a ";" at the end or just leave it as it is.
2. How should the hexadecimal value be represented.
i.e actual hexadecimal value for 7 is 0x7.
should i represent it like 0x0007 or 0x07 or 0x7 ?
Thanks for one and all who have cleared my doubt.
regards
usman
Hi,
I have a few doubts about inner class. I would be happy if anyone would clear my doubts.
1. Does the inner class accessible from other class ?
2. Can an inner class be instantiated in other class ?
Thanks in advance
usman
Hi vivek,
You can restart a thread by creating an object of the thread
once again and call its start method.
Once a thread is dead , you can still access the other methods
of the class as you access other methods in the normal class.
us'man
Yes,
As Holla told, if the object is been returned then you can expect the actual change which you have passed as an argument.
Here is the changed code
public class example {
int i[] = {0};
public static void main(String args[]) {
int i[] = {1};
i=change_i(i);
System.out.println(i[0]);
}
public static int[] change_i(int i[]) {
int j[] = {2};
i = j;
return i;
}
}