Originally posted by Deepak M:
hi Guys,
So I finally made it after 3 months of JLS, and JavaRanch.
And NO mock tests !
That's right, the only test I took was the Beta exam (which was more than just a mock test) last week.
Guys, one word of advice for u ... Read the Java Language Specs - esp the chapter on Classes, Interfaces, Arrays and Expressions.
If u can't find it on the Net, I'll mail it to u personally.
For I/O - I referred to the API and stuck the objectives.
For AWT - Core Java gives a good explanation, RHE is good for event handling.
For Threads, refer to CoreJava Volume 2 - nothing beats it !
Be good to yourself - read the JLS
I wonder where I went wrong... I think its just not possible to score 100% even if u get all qts right. Its probably programmed that way.
After all, noone's perfect, and Sun very well believes in it !
My next goal - SCJD and an XML certification !
All the best to all of u out there.....
I'd love to be of help to anyone who plans to take the real exam after October as well.
From the beta exam, its pretty obvoius the new exam has the same level of difficulty. However, you are now provided with the number of correct choices to be selected in case of more than one correct answers.
[This message has been edited by Deepak M (edited September 01, 2000).]
Originally posted by Netla Reddy:
Please could you some body give the answer.?
Question 28)
What will happen when you attempt to compile and run the following code
public class As{
int i = 10;
int j;
char z= 1;
boolean b;
public static void main(String argv[]){
As a = new As();
a.amethod();
}
public void amethod(){
System.out.println(j);
System.out.println(b);
}
}
1) Compilation succeeds and at run time an output of 0 and false
2) Compilation succeeds and at run time an output of 0 and true
3) Compile time error b is not initialised
4) Compile time error z must be assigned a char value
Given Ans is 1:
But I belive that answer is 4;
Thanks in advance
Originally posted by Netla Reddy:
Please could you some body give the answer.?
Question 28)
What will happen when you attempt to compile and run the following code
public class As{
int i = 10;
int j;
char z= 1;
boolean b;
public static void main(String argv[]){
As a = new As();
a.amethod();
}
public void amethod(){
System.out.println(j);
System.out.println(b);
}
}
1) Compilation succeeds and at run time an output of 0 and false
2) Compilation succeeds and at run time an output of 0 and true
3) Compile time error b is not initialised
4) Compile time error z must be assigned a char value
Given Ans is 1:
But I belive that answer is 4;
Thanks in advance
Originally posted by bkkumar:
hi friends!
i got one doubt regarding garbage collection.
when actually garbage collection takes place?is it just sporadically (OR) when no references to th objects exists.
(OR) when memory is full.
pls give the reply ASAP.
Originally posted by bkkumar:
hi friends!
i got one doubt regarding garbage collection.
when actually garbage collection takes place?is it just sporadically (OR) when no references to th objects exists.
(OR) when memory is full.
pls give the reply ASAP.