Anne Sullivan

Greenhorn
+ Follow
since Mar 29, 2007
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 Anne Sullivan

1.
Can a variable declared inside an inner class be static?

2.
What is the command line that we use to enable assertion?
-enablesystemassertions?
-esa?
-enableassertions?
I have a questions regarding the SCJP exam:

1.
Can a static method be synchronized? If so, what is being locked
since there is no this reference?

2.
I thought one object has only one lock. Is that
not true?
1
I am a bit confused about how Java interprets numbers in binary forms. For example, 99 is 0000 0000 0000 0000 0000 0000 0110 0011
. But -99 is 1111 1111 1111 1111 1111 1111 1001 1101? Why isn't -99 1000 0000 0000 0000 0000 0000 0110 0011?


2
public class Static{

static{
int x=5;
}
}

Does x work the same as a static variable?

3
can we create a static variable inside a method?

4
abstract interface Blah {} legal?

5
Are varibles inside a static method initiated or not initiated like in regular non-static methods?

6.
which 2 are legal methods to override "public void methodA(int i) throws AssertionError

answer is "public void methodA(int i)" and "public void methodA(int i) throws Error" I thought an overriding method can throw a more specific but not a more general exception. Since AssertionError is clearly a subclass of Error, why can an overriding method throw an Error?
how does the difficulty of whiz lab compare to the real SCJP exam?
Does a local inner class which resides inside a static method still have the "can only access local variables that is declared final" restriction?
Does a local inner class which resides inside a static method still have the "can only access local variables that is declared final" restriction?
Does a local inner class which resides inside a static method still have the "can only access local variables that is declared final" restriction?
Does a local inner class which resides inside a static method still have the "can only access local variables that is declared final" restriction?
I am a newcomer to the field of CSS. And fittingly, I have an elementary question regarding CSS. I have an image that is linked to an url, and all seemed fine. However, once that hyperlinked image is clicked, there is a blue border around that image. I need to find a way to rid the blue border. Can anyone please help?

Thanks in advance!