biju joseph

Greenhorn
+ Follow
since Aug 02, 2002
Merit badge: grant badges
For More
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 biju joseph

Hi,
I passed the Java certification exam 1.4 with 93% this morning. It took nearly 1.5 months for me to prepare for it. Last two weeks i prepared very well(5-6 hours on sat and sun and two hours on weekdays). Before that i couldn't allot much time. I have a 5 month old daughter, you can imagine how much time would i get!.
This site was very helpful for me. I did 4 or 5 mock exams listed here. Also i used Exam Cram, Java certification by Mughal and Rasmussen, Java certification study guide by ...(i forgot the name, it is from the authors of sun's Java exam).
By the way, I am not a java programmer and haven't got a chance to work on Java. I am working on ASP, VB and other microsoft based technologies and planning to start working on .NET technologies.
Thanks to everyone
Biju Joseph
21 years ago
Thanks Dan.
You are correct, it works with code
Base2 b = new Base2();
Hi,
Following class Base1 is in package base1p
package base1p;
public class Base1{
protected void amethod()
{
System.out.println("amethod1");
}
}

Following class Base2 is in default package.
import base1p.Base1;
public class Base2 extends base1p.Base1
{
public static void main(String argv[])
{
Base1 b = new Base1();
b.amethod();
}
}
This gives a compiler error saying "Can't access protected method amethod in class base1p.Base1. base1p.Base1 is not a subclass of the current class. b.amethod();"
But if both classes are given in the same source file, it prints "amethod1".
Any idea why it gives this error as protected should be accessible from another package?.
Hi,
Following is a question from JohnJunt Mock Exam.
Which variables can an inner class access from the class which encapsulates it?
A. All static variables
B. All final variables
C. All instance variables
D. Only final instance variables
E. Only final static variables
Select all correct answers

The answers are A, B,C. But i think this is wrong because:
1. methods of a static inner class cannot access instance variables or methods of the enclosing class. This is because static inner class doesnot have a reference to the enclosing class object.
2. methods of static local class cannot access instance variables of the enclosing class. same reason as above
3. if the anonymous inner class is static(implicitly), it cannot access any instance variables of the enclosing class
When exam says inner class, which inner class do they mean?. Is that all inner classes or a specific type of inner class?
Thanks
biju
Is there IO for certification exam 1.4?
Thanks Corey,
I changed my name but it still displays my old name
Thanks
Hi All,
Can null, true and false be considered as keywords for exam purpose?
Thanks
bju