Christian Strohmaier

Greenhorn
+ Follow
since Feb 10, 2000
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Christian Strohmaier

all primitive data types except for boolean are arithmetical promoted, whith the following algorithm:
* double, if there is at least one double, break
* float, if there is at least one float, break
* long, if there is at least one long, break
* default is int
Hope this helps
0x0005L is a literal (hexadecimal because of leading 0x long because of L)
then you have comparison char and long, therefore arithmetic promotion to long is done automatically
CIAO
Christian
maha anna,
i did not encounter a question, where I had to remember unusual
syntax details.
One tip: Have a close look, how to construct an InputStreamReader with encoding and know what they are good for.
Many greetings from Munich
Christian
Many thanks to Java Ranch and all Rancheros participating.
Some remarks:
* 50% of the questions are easy (for an prepared candidate),
like determining the range of primitive data types
* 30% are sophisticated but feasible for a good prepared candidate. You really have to understand concepts like dynamical binding of methods or call by value/call by reference
* 20% are bad worded, you will encounter question types like:
Many cowboys are square dancers. True or false?
So you have to decide:
It is true, because you know that ALL cowboys are square dancers and MANY is a subset of ALL.
It is false, because you know that ALL cowboys are square dancers and MANY differs from ALL.
(Perhaps it is very clear for a native speaker, but I really had problems of that kind)
Anyway, knowing the rest will help you surviving this trap.
Advices for preparation:
* Read the Bible (= Simon Roberts book), watch out for errata
* Bill Brodgens book or Marcus Greens Tutorial are nice supplements.
* do all the mock exams (there you can get used to bad worded questions)
* do not use "Kais notes", they are too confusing
* visit the ranch
* in my opinion a good indicator for readyness is knowing and understanding everything from "Carls Certification Notes".
good luck
I have read in another discussion group that
calling the finalize() method of the super class
is also necessery/advisable when overriding it.
API says:
The finalize method of class Object performs no special action; it
simply returns normally. Subclasses of Object may override this
definition.
Does anybody know the real answer?
I think one possible purpose is the use of Vector
remember the signature of the method add()
add(Object o)
Appends the specified element to the end of this Vector
you can add an array to a vector
you even do not need an explicit cast
it is an automatic promotion from array to Object
I think what happens is:
a call of repaint() flags an update() which calls paint().
the main effect is that update() executes just once (even if there are several sequential update() calls)
and it is executed at the next possible situation
I had some trouble in mock exams with these kind of questions, because I am not a native English speaker.
Could you please explain the exact use of English words in that context?
e.g. is there a difference between invoke and call a method?
A small rule of thumb for getting the bit representation of negative numbers (useful for >> >>> << questions):
1. consider the absolute value of the number
2. decrement this number
3. get the bit representation
4. invert every bit
Example:
bit representation of byte -14?
1. 14
2. 13
3. 00001101
4. 11110010