Originally posted by nikunj thakur:
their are 2 books of K&B 1-head 1st java and 2- sun certified java programmer
which one i should use 2 study for SCJP 1.5
Originally posted by Chandra Kota:
Hello All,
Please find the below code
My question is e.getObject() method would return object of class B . Then accessing x on object b should display 6, but why is it displaying 5. Can any one explain the fundamental rule here.
Originally posted by Chandra Kota:
Even I'm confused with this. When we declare and Initialize the array, there is no problem. But when we separate declaration and initialization, we are having the problem. Can anyone explain whats wrong with that.
Originally posted by Radha Kamesh:
Sorry friends, this might turn out to be a really stupid doubt, but
i'm confused..
I dont get why this piece of code throws a NullPointerException at line 5
Thanks
Originally posted by Jay Dilla:
I'm confused about WHERE the shifting begins. For instance let's say we have a problem like . That bit representation would be . My question is where do I begin shifting the bits? At the 1 or at the 0 following the 1? Is it or ?
Originally posted by Jay Dilla:
i'm taking the exam friday and still can't grasp this basic idea.
let's say we have a code snippet like:
at line 2 j will be 10, but i will be 11?
so you can assign a postoperand and get the preoperand value?
but the variable that uses the postoperand will still have to wait to get the real value?
when does the post operand variable get the new value? does it have to be called again or something?
Originally posted by V Gala:
interface Bicycle{
public void Bicycle();
}
public class Jchq {
public static void main(String argv[]){
Jchq j = new Jchq();
Bicycle b = (Bicycle) j;
}
}
what should be the answer the compile time error or runtime error
Originally posted by V Gala:
interface Bicycle{
public void Bicycle();
}
public class Jchq {
public static void main(String argv[]){
Jchq j = new Jchq();
Bicycle b = (Bicycle) j;
}
}
what should be the answer the compile time error or runtime error
Originally posted by Burkhard Hassel:
Howdy Leon,
welcome to the Ranch!
No, there are no questions about swing and awt.
Perhaps our FAQ page could be helpfull for you:
http://faq.javaranch.com/view?ScjpFaq
Yours,
Bu.