dilip kumarr

Greenhorn
+ Follow
since Jan 31, 2010
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 dilip kumarr


kathy sierra question doubt scjp 1.6

anyone please help me solving this code..... please explain in detail, dont forget to explain code no.4 and 6

thanks in advance




Anyone please explain this code in detail ., i'm not able to understand ...
thanks in advance.

i'm currently using scjp 1.6 study guide (Exam 310-065) written by Kathy Sierra and Bert Bates for preparing my scjp 1.6 exam. Does this book conform to the whole syllabus inconformance to the present scjp1.6 syllabus. anyone please help me out. thanks in advance.

question:
what is the result?

class Top {
public Top(string s)
{
System.out.print("b");
}
public class Bottom2 extends Top{
public Bottom2(String s)
{
System.out.print("D");
}
public static void main(String [] args){
new Bottom2("c");
System.out.println(" ");
}
}

doubt:
1.wats the meaning of : new Bottom2("c"); in the above program.

kindly clear my doubt...........

thanks in advance..............



i have finished learning object orientation chapter in kathy sierra scjp 1.6............but still im unable to answer the practice questions given in the end of this object orientation chapter....anyone suggest me tips to crack this chapter ...........anticpating for the reply................


thanKS in advance!!!
ques:
given:
public abstract interface frobnicate { public void twiddle(string s);
choose t correct class
ans given in k&b:

doubt: is it possible to change the argument while implementing the interface(but the rules for implementing interface states that it should adhere rules of overriding).i.e, passing i instead of s....if so it becomes like overloading.....kindly anyone explain..........
anticipating for the explanation
tanx in advance.................