Vegad Arvind

Ranch Hand
+ Follow
since Jan 10, 2001
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 Vegad Arvind

Hi,
I'm from India, I tried in UK, and also I'm getting good response, but the problems to work in UK is work permit. most of consultant asking if u hv valid work permit we'll provide u job and will not provide work permit sponser ship or any kind of help how to get work permit. that means i hv to consider consultant/compnay only to get the work permit. can an individual apply for work permit in UK ?
pls help me out what is the solution for this ?
19 years ago
Hi,
I cleared SCJP on 5th May. still today after 2 months and 13 days
i didn't get certificate and logo aggreement.
can anyone pls help me out how to check the status ?.
Thnaks in Advance.
Arvind.
19 years ago
Hi,
I cleared SCJP on 5th May, till date i didn't get certificate
/logo agreement etc. can anybody help me out how to get it ?
best regards
Arvind.
19 years ago
Thanks a lot !!!
Arvind.
19 years ago
Hi,

On 5th may at 7:00 p.m ....thanks God!!! i passed SCJP WITH only and exatly 61%.I am very happy with the result.If i would have prepared for one week more and work on jqplus i would have scored more.I was preparing since three months but not consistance.
I reached up to sun's minimum level....eventhough i m very happy.
i found one similar qs from JQ+.
first 6 Qs on IO i got 100%,
from 35 to 50 all are fundamentals and very eaSy and strightforward.
7-8 Qs on thread all are lengthy around 25-35 lines, 3 of them on syncronized, not a single on theory.
Util i found only two - basic qs.
no qs on StringBuffer,
for , while loop ..very tough...
one on GC i got 0%.
5-6 on inner class most of theoritical, overloading/riding very easy, one on shift but i m sure it was on pass by value/reference.
one qs on difference betn MouseListener/Mousemotionlistener.
most of qs has 6-7 options.
overall i got
IO 100%
Overloading/riding 100%
Util 100%
GC 0%
remaining parts u can imagin.....
no fill in blank qs.
i mark aroung 8 qs out of them i corrected ony two which benefit me or not i dont know!!!
i got on average 61-70% in JQ+1,2,3,...8 and random test,
75% in Marcus 1,2,3.
I have studied RHE, Examcram .these are very good books.
i got least in threads i.e 41%.I think i should have written more programs in Threads using synchronization.I got one question in GridbagLayout and i was correct.
i started JQ+ before 10 day of my exam, i completed each exam only once, i would have repeat the same to learn more but i could't it.
2)Try to concentrate more on I/O, Remember all the thread class constructors.Try to remember the inheritence heirarchy in I/O.I have got 6-7 questions in I/O.
3)Write as many programs in threads using synchronization.I got 7 questions in threads.

I would like to sincerely thank Maha Anna for her excellent work.I would also like to Tony,thank Mapraputa Is, Jane Griscti, Cindy , Thomas Paul, shailesh sonavadekar who are working day and night to help people in succeeding the exam.I would also like to thank Velu for his notes.I also like to thank Marcus Green for his excellent mock exams.
Thaks to Paul Anil for his excellent work - JQplus.

Thanks everyone,
bye
Arvind
19 years ago
Hi,
public class A {
public static void main (String args []) {
sup sup = new sub();
sup.staticmethod();
sup.instancemethod();
}
}
class sup {
static void staticmethod() {
System.out.println("sup's Static methods...");
}
void instancemethod() {
System.out.println("sup's instance methods...");
}
}
class sub extends sup {
static void staticmethod() {
System.out.println("sub's Static methods...");
}
void instancemethod() {
System.out.println("sub's instance methods...");
}
}

Prints Super's static methods
Prints Sub's instance methods
why staic method is execute from super class and instance from sub ?
how i can excute sub's static method from super sup = new sub()
can anybody explain me.

Avi
Hi,

Therer r two version of subString() method.
substring(int beginIndex)
Returns a new string that is a substring of this string.
substring(int beginIndex, int endIndex)
Returns a new string that is a substring of this string.
Here
String s = "tulip"
s.substring(2, 5) or s.substring(2) or s.substring(2, s.length()) all have same meaning in
the case of above Strnig s becoz s.length() = 5.

it return string start at index 2 and end at 5 (total char is 4)
s.substring(2) : string start at index 2 and up to end(if endIndex is not specified then default is the length of String)
s.substring(2, 5) : string start at index 2 and end at 5.
s.substring(2, s.length()) string start at index 2 and end at s.length() which is 5.
there is no character at index 5 so it will print upto index 4.
formula - subString()
Return String = (endIndex - beginIndex + 1 ) = 5 - 2 + 1 = lip(there is no character at 5th index)
Hope this will help
Arvind.
Hi Nitin,
Change x=(b1|b2 & b3^b4)?x++:--x; to
x=((b1|b2) & (b3^b4))?x++:--x;
ur ans will be 3.
Arvind.

Hi Pankaj ,
Great !!!
Congratulations for your java career.
Avi.
19 years ago
Congratulations !! and all the best.
Avi
19 years ago
Hi Fazal,
Byte b1 = new Byte("127"); //line
if(b1.toString() == b1.toString())
System.out.println("True");
else
System.out.println("False");

in place of line 1 if u change
String b1 = new String("Java");
it will print True. Why ? diff behavior betn Byte(Wrapper class) and String.
i think in String : b1.toString() return same obj ref.

Avi.
Hi,
After waiting is over the waited thread goes to ReadyState.
But there is no gurantee that this will be next one to run.
it is upto the thread scheduling mechanism to decide which is the next to run.
Avi.
IO
Hi Nitin,
T tried it but it written some junk data. can anybody pls explain.
Thanks
Avi.
Hi Ratul,
Sorry... i tried....but even my brain is not working. pls any experts help us.
Thanks
Avi.
Congrats Fazal and All the best.
19 years ago