Questions Log   C:\1passion.labs\handson_javase\QuestionsLog 2015_08_26 16_38.rtf

Q: yes[Roger Ramesh] [roger.m.ramesh@gmail.com] [Q: 9:59 AM] 

Q: yes[Carlos Irigoyen] [carlosir@bellsouth.net] [Q: 9:59 AM] 

Q: yes, good[Joel kass] [hjoelkass@gmail.com] [Q: 9:59 AM] 

Q: almost done[Joel kass] [hjoelkass@gmail.com] [Q: 10:31 AM] 

Q: done[Sharada Bandaru] [sharada.bandaru6@gmail.com] [Q: 10:31 AM] 

Q: one question, is there a way to graphically show the class heirarchy that is being called, ie, show a stacktrace in Eclipse?[Joel kass] [hjoelkass@gmail.com] [Q: 10:32 AM] 

Q: that is, here we are using sysout..wondering if there is a view that does something like this.[Joel kass] [hjoelkass@gmail.com] [Q: 10:32 AM] 

Q: ok[Joel kass] [hjoelkass@gmail.com] [Q: 10:32 AM] 

Q: call stack, sorry my type error![Joel kass] [hjoelkass@gmail.com] [Q: 10:33 AM] 

Q: ok[Joel kass] [hjoelkass@gmail.com] [Q: 10:33 AM] 

Q: yes[Joel kass] [hjoelkass@gmail.com] [Q: 10:34 AM] 

Q: ok got it.[Joel kass] [hjoelkass@gmail.com] [Q: 10:34 AM] 

Audience Question: 
Q: if we have super() in internationalstudent is that ok to call parameterized constructor of person class or do we need to have super() in student classs as well[Sharada Bandaru] [sharada.bandaru6@gmail.com] [Q: 10:45 AM] [A: 10:50 AM] 
A: super(..) is always calling its immediate parent class.  let me know if this is what you are asking

Q: quick question- where are you passing in the argument for Address? I assume that this implies that the constructor creates a default NULL value for address which we later would  set.[Joel kass] [hjoelkass@gmail.com] [Q: 10:51 AM] 

Q:     InternationalStudent internationalStudent1 =
                new InternationalStudent("Sang Shin",   // Name
                "1 Dreamland", // Address
                4.5,           // Grade
                "Korea");      // Country[Joel kass] [hjoelkass@gmail.com] [Q: 10:53 AM] 

Q: address is being passed to the constructor in Main for the lab.[Joel kass] [hjoelkass@gmail.com] [Q: 10:52 AM] [A: 10:53 AM] 
A: correct

Q: address is being passed to the constructor in Main for the lab.[Joel kass] [hjoelkass@gmail.com] [Q: 10:52 AM] [A: 10:54 AM] 
A: Looks like the code needs to be cleaned up a bit. :0)

Q: ok ya wanted to know if it inturn calls the parent of its parent class. dout cleared[Sharada Bandaru] [sharada.bandaru6@gmail.com] [Q: 10:54 AM] [A: 10:55 AM] 
A: good

Q: np. i was just wondering why Dreamland was not set.[Joel kass] [hjoelkass@gmail.com] [Q: 10:55 AM] [A: 10:56 AM] 
A: good eye indeed. :-)

Audience Question: 
Q: Hi Sang: When I run the project, I am getting a message at the bottom that says 'No Tests Executed'. BTW, I am using Netbeans[Carlos Irigoyen] [carlosir@bellsouth.net] [Q: 10:57 AM] [A: 10:58 AM] 
A: That means there is no test code.  You can ignore that message.

Q: OK, thanks[Carlos Irigoyen] [carlosir@bellsouth.net] [Q: 10:58 AM] 

Q: done[Robert Mapes] [robertm@printnw.net] [Q: 10:59 AM] 

Q: none so far[Robert Mapes] [robertm@printnw.net] [Q: 11:09 AM] 

Q: voice is not clear[su chen] [javareq2@gmail.com] [Q: 11:20 AM] 

Audience Question: 
Q: How to autogenerate set get beans for vars in eclipse ?[Dmitry Sandratsky] [damka76@yahoo.com] [Q: 11:18 AM] [A: 11:22 AM] 
A: Are you asking generation of getter and setter methods of fields?

Q: yes[Dmitry Sandratsky] [damka76@yahoo.com] [Q: 11:22 AM] 

Audience Question: 
Q: so generally speaking, if you do not use generics in a project that is type casting alot of members, you would have to add alot of instanceof code blocks, correct?[Joel kass] [hjoelkass@gmail.com] [Q: 11:19 AM] [A: 11:22 AM] 
A: Type casting is only one aspect of Generics.  Generics does a lot more.

Audience Question: 
Q: in eclipse[Dmitry Sandratsky] [damka76@yahoo.com] [Q: 11:22 AM] [A: 11:24 AM] 
A: You can select the field and then perform "refactor->generate getter and setter".  Are you referring more autmatic than this? :-)

Q: all done[Joel kass] [hjoelkass@gmail.com] [Q: 11:27 AM] 

Q: no :)[Dmitry Sandratsky] [damka76@yahoo.com] [Q: 11:27 AM] 

Q: I just new to eclipse :) [Dmitry Sandratsky] [damka76@yahoo.com] [Q: 11:27 AM] [A: 11:27 AM] 
A: i see

Q: got disconnected because of my system issue after the generics you were telling, can you please tell me what topics were done in the middle.[Sharada Bandaru] [sharada.bandaru6@gmail.com] [Q: 11:30 AM] 

Audience Question: 
Q: Why string is immutabe in java: (from Gosling) http://www.artima.com/intv/gosling313.html[Joel kass] [hjoelkass@gmail.com] [Q: 11:46 AM] [A: 11:50 AM] 
A: forwarding to everyone..

Audience Question: 
Q: How do I create my own immutable class?[Rajesh Venkataraman] [rajvenka@gmail.com] [Q: 11:56 AM] [A: 11:58 AM] 
A: You just implement your methods so that there is no way of manipulating the data..

Q: u mean, making all the methods in the class as final[Rajesh Venkataraman] [rajvenka@gmail.com] [Q: 12:01 PM] 

Q: done[Dmitry Sandratsky] [damka76@yahoo.com] [Q: 12:01 PM] 

Q: almost done[Joel kass] [hjoelkass@gmail.com] [Q: 12:01 PM] 

Audience Question: 
Q: and the class itself as final?[Rajesh Venkataraman] [rajvenka@gmail.com] [Q: 12:01 PM] [A: 12:03 PM] 
A: immutablilty and final class concept are two separate things.  The former means that a String object can be modified while the latter means the String class cannot be sub-classed.  

Audience Question: 
Q: ok....[Rajesh Venkataraman] [rajvenka@gmail.com] [Q: 12:03 PM] [A: 12:05 PM] 
A: That is the reason you should use StringBuffer class instead of String class when you have a need to maniplate Strings.  Because String object cannot be modified, basically when you do  string1.concatenate(string2), internally Java runtime has to create a brand new String object, which is inefficient.  StringBuffer and StringBuilder classes are modifiable.

Audience Question: 
Q: Have you ever seen eclipse not accept the "*" key symbol.  When I try an type multiplacion it highlights.  On MAC Mars release.[Scott Beeker] [sbeeker@ix.netcom.com] [Q: 12:06 PM] [A: 12:07 PM] 
A: No, I have not seen that problem myself.

Q: yes[Robert Mapes] [robertm@printnw.net] [Q: 12:09 PM] 

Q: yes[Joel kass] [hjoelkass@gmail.com] [Q: 12:09 PM] 

Audience Question: 
Q: Mr.Shin, I dont really understand what the abstract class does?[Roger Ramesh] [roger.m.ramesh@gmail.com] [Q: 12:18 PM] [A: 12:26 PM] 
A: Understand.  Let me explain a via voice

Q: ok[Joel kass] [hjoelkass@gmail.com] [Q: 12:27 PM] 

Audience Question: 
Q: generally, do we want to use Interfaces before Abs Classes because you can mimic multiple inhereitancec with them? I guess i am trying to undestand why i would use an abstract class over an interface.[Joel kass] [hjoelkass@gmail.com] [Q: 12:26 PM] [A: 12:28 PM] 
A: We are going to address this question as well later on

Audience Question: 
Q: so abstract method hast to impliment if we extends[mohan paralla] [sunny25286@gmail.com] [Q: 12:28 PM] [A: 12:28 PM] 
A: The concrete class has to implement all abstract methods of abstract class

Q: so abstract method has to impliment in sub class?[mohan paralla] [sunny25286@gmail.com] [Q: 12:29 PM] 

Q: ok[mohan paralla] [sunny25286@gmail.com] [Q: 12:29 PM] 

Q: yes, i am[Joel kass] [hjoelkass@gmail.com] [Q: 1:05 PM] 

Q: yes[Dmitry Sandratsky] [damka76@yahoo.com] [Q: 1:05 PM] 

Q: would an abstract class be different than this?[Joel kass] [hjoelkass@gmail.com] [Q: 1:15 PM] 

Q: ok[Joel kass] [hjoelkass@gmail.com] [Q: 1:15 PM] 

Q: sure[Joel kass] [hjoelkass@gmail.com] [Q: 1:15 PM] 

Q: How can a class implement multiple interfaces but one class is only extended[Roger Ramesh] [roger.m.ramesh@gmail.com] [Q: 1:16 PM] 

Audience Question: 
Q: what would happen if there are conflicting behaviors in multiple interfaces? Would that be compile time or run time error?[Joel kass] [hjoelkass@gmail.com] [Q: 1:16 PM] [A: 1:17 PM] 
A: fowarding

Q: ok[Joel kass] [hjoelkass@gmail.com] [Q: 1:18 PM] 

Q: yes[Joel kass] [hjoelkass@gmail.com] [Q: 1:18 PM] 

Q: ok[Joel kass] [hjoelkass@gmail.com] [Q: 1:18 PM] 

Audience Question: 
Q: Does the interface have access to the methods of the classes it is connected to?[Robert Mapes] [robertm@printnw.net] [Q: 1:23 PM] [A: 1:23 PM] 
A: forwarding

Audience Question: 
Q: by connected, i assume he means implemented by..i would say no[Joel kass] [hjoelkass@gmail.com] [Q: 1:24 PM] [A: 1:24 PM] 
A: forwarding

Q: It declare them :)  yes[Dmitry Sandratsky] [damka76@yahoo.com] [Q: 1:24 PM] 

Q: ah i got it -:)[Joel kass] [hjoelkass@gmail.com] [Q: 1:25 PM] 

Q: yes[Joel kass] [hjoelkass@gmail.com] [Q: 1:25 PM] 

Q: Why java has abstract class option if iinterafce much more powerfull and do same  things[Dmitry Sandratsky] [damka76@yahoo.com] [Q: 1:30 PM] 

Q: interface[Joel kass] [hjoelkass@gmail.com] [Q: 1:32 PM] 

Q: we still need concret class Line[Daxu Yin] [daxuyin@yahoo.com] [Q: 1:40 PM] 

Q: using interface?[Daxu Yin] [daxuyin@yahoo.com] [Q: 1:40 PM] 

Audience Question: 
Q: Hi Sang: Duty calls. I am going to have to sign off and continue tomorrow. Sorry. At what time are you planning to have the recording?. Thanks. Carlos[Carlos Irigoyen] [carlosir@bellsouth.net] [Q: 1:35 PM] [A: 1:40 PM] 
A: it takes about 2 or 3 hours

Audience Question: 
Q: how do we compile without a concret class?[Daxu Yin] [daxuyin@yahoo.com] [Q: 1:40 PM] [A: 1:41 PM] 
A: forwarding

Q: yes[Daxu Yin] [daxuyin@yahoo.com] [Q: 1:45 PM] 

Q: thanks a lot[Daxu Yin] [daxuyin@yahoo.com] [Q: 1:45 PM] 

Q: when complete, can you upload this version for us? very helpful with factory.[Joel kass] [hjoelkass@gmail.com] [Q: 1:49 PM] 

Q: you end of line :  change to ;[Dmitry Sandratsky] [damka76@yahoo.com] [Q: 1:49 PM] 

Q: Looks like your line 9 has a colon instead of semicolon[Robert Mapes] [robertm@printnw.net] [Q: 1:50 PM] 

Q: thanks[Daxu Yin] [daxuyin@yahoo.com] [Q: 1:52 PM] 

Q: yes pls[Joel kass] [hjoelkass@gmail.com] [Q: 1:52 PM] 

Q: this was good as its also introducing the factory design pattern a bit.[Joel kass] [hjoelkass@gmail.com] [Q: 1:53 PM] 

Audience Question: 
Q: one question- typically in order to loosely couple the concrete class vs the object creation, should be by default setup some class either factory pattern or the such to acomplish this?[Joel kass] [hjoelkass@gmail.com] [Q: 1:55 PM] [A: 1:56 PM] 
A: Correct. 

Q: ty[Joel kass] [hjoelkass@gmail.com] [Q: 1:59 PM] 

Audience Question: 
Q: are you going to talk about patterns[Vikram Srinivasan Venkatakrishnan] [vvikramsri@gmail.com] [Q: 2:00 PM] [A: 2:00 PM] 
A: Not in this codecamp

Q: one question- typically in order to loosely couple the concrete class vs the object creation, should be by default setup some class either factory pattern or the such to acomplish this?[Joel kass] [hjoelkass@gmail.com] [Q: 1:55 PM] [A: 2:06 PM] 
A: I might not have time to create a project with a factory pattern - hopefully I will do that over the weekend.

Q: sure[Joel kass] [hjoelkass@gmail.com] [Q: 2:10 PM] 

Q: yes[Robert Mapes] [robertm@printnw.net] [Q: 2:10 PM] 

Q: ready[Joel kass] [hjoelkass@gmail.com] [Q: 2:36 PM] 

Audience Question: 
Q: hi sam,  is this code camp recorded and published into javapassion.com ?[srinivas dumpala] [srinu.dumpala@gmail.com] [Q: 2:38 PM] [A: 2:38 PM] 
A: correct

Q: Thank you so much[srinivas dumpala] [srinu.dumpala@gmail.com] [Q: 2:38 PM] 

Q: you have incorrect description of code .// Find out the school the student attends
    // Method implementation of PersonInterface interface
    public String findSchool(){
        return school;
    }
} Its implementation of student interface[Dmitry Sandratsky] [damka76@yahoo.com] [Q: 2:38 PM] [A: 2:39 PM] 
A: can you give me which section which file info? thanks

Q: Code-4.11: Modified Student.java[Dmitry Sandratsky] [damka76@yahoo.com] [Q: 2:39 PM] [A: 2:40 PM] 
A: thanks.

Audience Question: 
Q: is Polymorphism next?[Joel kass] [hjoelkass@gmail.com] [Q: 2:38 PM] [A: 2:41 PM] 
A: yes

Q: Done[Dmitry Sandratsky] [damka76@yahoo.com] [Q: 2:41 PM] 

Q: How to maintain interface versions (changes).[Dmitry Sandratsky] [damka76@yahoo.com] [Q: 2:46 PM] 

Q: im done[Joel kass] [hjoelkass@gmail.com] [Q: 2:56 PM] 

Q: Does the object change as a result of the behavior changing in polymorphism?[Roger Ramesh] [roger.m.ramesh@gmail.com] [Q: 3:00 PM] 

Q: Can you force the application to use the parent class method of the same name, skipping the polymorphism ability?[Robert Mapes] [robertm@printnw.net] [Q: 3:06 PM] 

Q: Yes[Robert Mapes] [robertm@printnw.net] [Q: 3:07 PM] 

Q: ye[Robert Mapes] [robertm@printnw.net] [Q: 3:08 PM] 

Q: done[Dmitry Sandratsky] [damka76@yahoo.com] [Q: 3:24 PM] 

Q: i am good.[Joel kass] [hjoelkass@gmail.com] [Q: 3:42 PM] 

Q: you stillll have the same ring tone [Vikram Srinivasan Venkatakrishnan] [vvikramsri@gmail.com] [Q: 3:46 PM] 

Q: no, its clear[Robert Mapes] [robertm@printnw.net] [Q: 3:46 PM] 

Q: How to implement  custom exceptions ?[Dmitry Sandratsky] [damka76@yahoo.com] [Q: 4:18 PM] 

Q: yes[Dmitry Sandratsky] [damka76@yahoo.com] [Q: 4:22 PM] 

Q: Is "throw" the same as saying return?[Robert Mapes] [robertm@printnw.net] [Q: 4:23 PM] 

Q: So its forcing the exception object to be instantiated?[Robert Mapes] [robertm@printnw.net] [Q: 4:28 PM] 

Q: thanks[Robert Mapes] [robertm@printnw.net] [Q: 4:32 PM] 

Q: i had a question i missed from yesterday i believe if its ok to ask -:)[Joel kass] [hjoelkass@gmail.com] [Q: 4:32 PM] 

Audience Question: 
Q: regarding the switch statement: in general, should we avoid the switch statement and use Map or HashMap instead? I have heard its best not use switch, especially with the anti pattern switch for[Joel kass] [hjoelkass@gmail.com] [Q: 4:33 PM] [A: 4:33 PM] 
A: forwarding..

Q: ok[Joel kass] [hjoelkass@gmail.com] [Q: 4:34 PM] 

Audience Question: 
Q: http://www.znetdevelopment.com/blogs/2010/12/17/java-performance-map-vs-ifelse/[Joel kass] [hjoelkass@gmail.com] [Q: 4:34 PM] [A: 4:34 PM] 
A: forwarding

Q: its a debate in teh java community on the usage of java switch vs using maps[Joel kass] [hjoelkass@gmail.com] [Q: 4:34 PM] 

Q: its easy to google, all over.[Joel kass] [hjoelkass@gmail.com] [Q: 4:35 PM] 

Q: sure[Joel kass] [hjoelkass@gmail.com] [Q: 4:36 PM] 

Q: it has to do with performance as you suggested.[Joel kass] [hjoelkass@gmail.com] [Q: 4:36 PM] 

Q: ah i found it..[Joel kass] [hjoelkass@gmail.com] [Q: 4:36 PM] 

Q: please look at this link[Joel kass] [hjoelkass@gmail.com] [Q: 4:36 PM] 

Q: https://levelupcode.wordpress.com/avoid/loop-switch-sequences/[Joel kass] [hjoelkass@gmail.com] [Q: 4:36 PM] 

Q: this is better than the previous one.[Joel kass] [hjoelkass@gmail.com] [Q: 4:36 PM] 

Q: just a curious concept i heard about.[Joel kass] [hjoelkass@gmail.com] [Q: 4:37 PM] 

Q: just google for switch anti pattern java[Joel kass] [hjoelkass@gmail.com] [Q: 4:37 PM] 

Q: great today![Joel kass] [hjoelkass@gmail.com] [Q: 4:38 PM] 

Q: very good session[Joel kass] [hjoelkass@gmail.com] [Q: 4:38 PM]