Praveen Mathur

+ Follow
since Sep 21, 2003
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Praveen Mathur

Thanks Philippe & Sankar for appreciation.
Hi Javaranchers,
I have prepared some mock test while preparing for my SCBCD exam. I have framed the questions from Sun EJB Specification 2.0 pdf using Valentin's cheat-sheet.
Just try and see if it can benefit you for reviewing the EJB concepts.
URL: Click Here
[Val fixed the link ]
[ December 02, 2003: Message edited by: Valentin Crettaz ]
Hi Javaranchers,
I am glad to share that i have passed the 1Z0-031 exam with 97% ( Scored 58 out of 60). The exam was very cool with many multiple type questions.Thanks to this forum for help.
For those who are preparing for this exam, i would like to share my way of studying. I studied with "Database Fundamental -I" with jason couchman and Oracle ILT notes. I used testking questions for mock tests. I will highly recommend to once go through Testking mock test.
17 years ago
You can find some mock tests in file section of OCA_DEV yahoo group.
17 years ago
Hi All,
I have passed the Oracle 9i SQL exam (1Z0-007) yesterday with 95%. I am thankful to this forum for helping me in the preparation.
I would like to share my way of study for those who want to appear in this exam. The book " Introduction to Oracle9i Sql" by chip dawes & biju thomas is the best for study.
I studied this book for around 20 days before sitting in the exam. I also used Mock test of whizlabs and boson.Whizlab tests are slightly harder than real exam but it is really good for preparation.
Now i am planning to appear in "Oracle Database fundamentals I" (1Z0-031) exam. Please share your experiences and tips if you have already cleared this exam.
17 years ago
Thanks Praveen.....Do you know some good forum for OCP Certification and some sites for that?
17 years ago
Hi javaranchers,
Can anybody suggest me how to start the preparation of Oracle 9i Certified Associate ( Exam IZ0-007 and IZO-031)?
What is the best certification book for these exam?
SCJP 1.4
17 years ago
Hi Javaranchers,
Today finally , i passed my SCJP exam with 88% marks. I lost my marks in somewhat easier topics ( Declarations,FlowControls and Overriding). I got 100% in rest 6 sections.
I am really thankful to all guys participating in the forum which helped me a lot.
I would like to share about my exam preparation which may help somebody.
I studied for this exam for 1 month and referred " A Programmer's guide to Java certification by Khalid and Rolf". Dan's test was really a great help. His test really made me to understand the inside of all java concepts.
Even though i am having around 2 year java experience but during preparing for this exam, i came to know many interesting things about java which i was really unaware.
I would also like to thank "Velmurugan Periasamy" for his wonderful notes.
Last but not the least, this forum really helped me to prepare for this exam.
Cheers and Bye
17 years ago
Never forgot to take Dan's Mock Exams :
These are Best among all.
Is the Master exam of K&B available for download on the Internet? Can anybody give me the URL?
Thanks in advance.
Jose, we have now 3 situations
(1) if "Garbage collection of out-of-scope local variable is JVM dependent".
then question is wrong and should have some other option to select.
(2) if "Garbage collection of out-of-scope local variables (like str) is done after the method A() returns not at the line 8" then answer should be 10 because at line 8 one str variable(even out-of-scope) is still alive.
(3) if "Garbage collection of local variables (like str) is done once they are out-of-scope" then answer should be 11.
Now question is, which among these 3 is true?
Hi Friends,
How many of String object created in line 5 are eligible for garbage collection at line 8?
1public void A()
3 for(int i=0; i <=10 ; i++)
4 {
5 Sting str=Integer.toString(i);
6 System.out.println(str);
7 }
8 System.out.println("Ready for garbage collection");
Answer written is 10.
I think it should be 11. Any Comments?
Hi Javaranchers:
Please try to predict the output of this question:
class A {
static A createA() {
return new A();
} // createA()
} // A

public class Tester {
public static void main(String[] parms) {
A aVar = null;
} // main()
} // Tester
Quotes from Java API ()
The general contract of hashCode is:
Whenever it is invoked on the same object more than once during an execution of a Java application, the hashCode method must consistently return the same integer, provided no information used in equals comparisons on the object is modified. This integer need not remain consistent from one execution of an application to another execution of the same application.
If two objects are equal according to the equals(Object) method, then calling the hashCode method on each of the two objects must produce the same integer result.
It is not required that if two objects are unequal according to the equals(java.lang.Object) method, then calling the hashCode method on each of the two objects must produce distinct integer results. However, the programmer should be aware that producing distinct integer results for unequal objects may improve the performance of hashtables.
I think , It should be clear to you now.
I just verified what Asha and Java lova explained to us:
public abstract class BaseTest
public abstract void test();
public BaseTest()
System.out.println("Super Class Constructor called");
public static void main(String[] args)
BaseTest bt = new DerivedTest();
class DerivedTest extends BaseTest
int i;
System.out.println("Variable Initialization");
public DerivedTest()
i = 3;
System.out.println("Subclass constructor called");
public void test()
System.out.println("i = " + i);
System.out.println("Test Method Called");
Output after compilation is:
Super Class Constructor called
i = 0
Test Method Called
Variable Initialization
Subclass constructor called