enediel Gonza

Greenhorn
+ Follow
since Jun 11, 2005
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 enediel Gonza

regarding this expression:
Runtime error
"A call to wait/notify must be within synchronized code. It will throw an error message ..."

My question :
?Under any circunstances the compiler detects this problem to produce a compiling error instead of a runtime error?

Thanks in advance for the answers
Testing the example that originated this thread

static final int i = 128;
will cause complile error in the line

static byte retInt(){return i;}
I need to understand why this function doesn't produce any error.
The result is not exactly an integral value.

Even, the line
System.out.println(x/13);
produces an integral output when it's not the real value of the operation.

long test(int x){
System.out.println(x/13);
return x/13;
}

Thank's in advance for the answers.
I'm looking for information about SCJP 1.5, Whizlab exam simulator and other books related to SCJP do not cover the new objetives

Thanks in advance
N