Questions Log   C:\1passion.labs\handson_javase\QuestionsLog 2015_08_25 16_28.rtf

Audience Question: 
Q: by what time are we starting[Mudassar Hakim] [mudassar.trainer@gmail.com] [Q: 9:35 AM] [A: 9:36 AM] 
A: We start 10am ET (New York time).  So we will start in 24 minutes

Q: specifically Lock[Mudassar Hakim] [mudassar.trainer@gmail.com] [Q: 9:36 AM] 

Q: reetntrant lock[Mudassar Hakim] [mudassar.trainer@gmail.com] [Q: 9:36 AM] 

Q: vlocking queue[Mudassar Hakim] [mudassar.trainer@gmail.com] [Q: 9:36 AM] 

Q: blocking queue[Mudassar Hakim] [mudassar.trainer@gmail.com] [Q: 9:37 AM] 

Audience Question: 
Q: It is mu humble request if possible kindly involve jdk 5 concurrency[Mudassar Hakim] [mudassar.trainer@gmail.com] [Q: 9:36 AM] [A: 9:37 AM] 
A: I see.   Let me think about it.  It now receives a bit lower priority than other topics because we now have Java 8 lambda and streams

Q: i understand[Mudassar Hakim] [mudassar.trainer@gmail.com] [Q: 9:37 AM] 

Q: Thread, callable[Mudassar Hakim] [mudassar.trainer@gmail.com] [Q: 9:38 AM] 

Q: etc[Mudassar Hakim] [mudassar.trainer@gmail.com] [Q: 9:38 AM] 

Audience Question: 
Q: please it has become a norm in the industry [Mudassar Hakim] [mudassar.trainer@gmail.com] [Q: 9:37 AM] [A: 9:39 AM] 
A: Well.. it depends on your perspective, I guess.  My sense is that the Industry has been fed up with the sub-par level of concurrency features from JDK so they are now adopting reactive programming such as RxJava as an alternative.  :-)

Q: oh is it :) thanks for sharing that[Mudassar Hakim] [mudassar.trainer@gmail.com] [Q: 9:40 AM] 

Q: Thanks for looking into it[Mudassar Hakim] [mudassar.trainer@gmail.com] [Q: 9:38 AM] [A: 9:41 AM] 
A: By the way, please send your message in a single messsage otherwise your messages will be intermingled with message from other people. :-)

Q: sure[Mudassar Hakim] [mudassar.trainer@gmail.com] [Q: 9:41 AM] 

Audience Question: 
Q: but latelty multithreading has gone beyond[Mudassar Hakim] [mudassar.trainer@gmail.com] [Q: 9:37 AM] [A: 9:42 AM] 
A: Multi-threading is indeed the main stream.  It is just JDK does not handle it very well even with its latest version.

Q: Hope the industry people here in India understand that :)[Mudassar Hakim] [mudassar.trainer@gmail.com] [Q: 9:42 AM] 

Audience Question: 
Q: but may be the banking sector relies on it a lot[Mudassar Hakim] [mudassar.trainer@gmail.com] [Q: 9:42 AM] [A: 9:43 AM] 
A: I see. Thanks for sharing it.

Q: when it was javapassion[Mudassar Hakim] [mudassar.trainer@gmail.com] [Q: 9:44 AM] 

Q: :)[Mudassar Hakim] [mudassar.trainer@gmail.com] [Q: 9:44 AM] 

Q: :) just one more thing , I have been a big fan of yours[Mudassar Hakim] [mudassar.trainer@gmail.com] [Q: 9:43 AM] [A: 9:44 AM] 
A: Good to hear.  Thanks much.  

Audience Question: 
Q: I have been following since my college days[Mudassar Hakim] [mudassar.trainer@gmail.com] [Q: 9:44 AM] [A: 9:45 AM] 
A: Thanks again.  I would love to have more Indian developers to join JPassion.com.

Q: certainly[Mudassar Hakim] [mudassar.trainer@gmail.com] [Q: 9:45 AM] 

Q: promoting[Mudassar Hakim] [mudassar.trainer@gmail.com] [Q: 9:45 AM] 

Q: good[Mudassar Hakim] [mudassar.trainer@gmail.com] [Q: 9:46 AM] 

Audience Question: 
Q: in fact i try proting your site to the freshers joining in my company[Mudassar Hakim] [mudassar.trainer@gmail.com] [Q: 9:45 AM] [A: 9:46 AM] 
A: Excellent.  By the way, I plan to offer "RxJava" 1-day codecamp sometime in the future.

Q: that would be great[Mudassar Hakim] [mudassar.trainer@gmail.com] [Q: 9:46 AM] 

Audience Question: 
Q: its because of your site today i am so ggod in java[Mudassar Hakim] [mudassar.trainer@gmail.com] [Q: 9:46 AM] [A: 9:47 AM] 
A: Congratulation.  I am sure it has much more to do your effort than JPassion.com :-)

Q: its your efforts sir :)[Mudassar Hakim] [mudassar.trainer@gmail.com] [Q: 9:47 AM] 

Q: the amazing examples[Mudassar Hakim] [mudassar.trainer@gmail.com] [Q: 9:47 AM] 

Q: and recordings[Mudassar Hakim] [mudassar.trainer@gmail.com] [Q: 9:47 AM] 

Q: they are very handy[Mudassar Hakim] [mudassar.trainer@gmail.com] [Q: 9:47 AM] 

Audience Question: 
Q: very keen to understand how it would act as replacement to multithreading[Mudassar Hakim] [mudassar.trainer@gmail.com] [Q: 9:46 AM] [A: 9:48 AM] 
A: By the way, check out Reactive Manifesto.  http://www.reactivemanifesto.org/

Q: sure[Mudassar Hakim] [mudassar.trainer@gmail.com] [Q: 9:48 AM] 

Q: yep[Mudassar Hakim] [mudassar.trainer@gmail.com] [Q: 9:52 AM] 

Q: Yes[Roger Ramesh] [roger.m.ramesh@gmail.com] [Q: 9:53 AM] 

Audience Question: 
Q: I also agree if you can go over concurrency a bit. its very clunky, but in the financial sector, its used extensivlely.[Joel kass] [hjoelkass@gmail.com] [Q: 9:53 AM] [A: 9:53 AM] 
A: Good to know..

Audience Question: 
Q: Hi Sang, hope you are doing OK, I have a question that I might be asking a lot in advance, which class will I need to take in order to obtain the Java Programmer I and Java Programmer II certifications?. Thanks[Carlos Irigoyen] [carlosir@bellsouth.net] [Q: 9:55 AM] [A: 9:56 AM] 
A: Java programming course abd Java 8 lambda will prepare you for those two certifications

Audience Question: 
Q: Working with built-in Java classes Part 1 and 2 are not openng in jpassion ste[su chen] [javareq2@gmail.com] [Q: 9:56 AM] [A: 9:56 AM] 
A: Really.  are you having a problem accessing which file?

Q: no recordings[su chen] [javareq2@gmail.com] [Q: 9:57 AM] 

Q: yesterday i went to pick my kid to the bus stop and i missed that concept so i need to see that recording or give mea brief review once[su chen] [javareq2@gmail.com] [Q: 9:58 AM] 

Q: it is ok[su chen] [javareq2@gmail.com] [Q: 9:58 AM] 

Q: you ca start[su chen] [javareq2@gmail.com] [Q: 9:58 AM] 

Q: ok[su chen] [javareq2@gmail.com] [Q: 9:58 AM] 

Q: question- wny would you choose to create an instance over a static method (or vice versa)? Also, are there any benifits to using either?[Joel kass] [hjoelkass@gmail.com] [Q: 10:09 AM] 

Q: Mr Shin, how come "charAt(2)" is equal to "a", why not "space"?[Roger Ramesh] [roger.m.ramesh@gmail.com] [Q: 10:09 AM] 

Q: Yes[Roger Ramesh] [roger.m.ramesh@gmail.com] [Q: 10:10 AM] 

Q: Similar to Arrays[Roger Ramesh] [roger.m.ramesh@gmail.com] [Q: 10:10 AM] [A: 10:19 AM] 
A: correct

Audience Question: 
Q: where does static methods() reside in memory & where does instance methods() reside.[Rajesh Venkataraman] [rajvenka@gmail.com] [Q: 10:19 AM] [A: 10:20 AM] 
A: Good question.  Both are loaded in memory as part of Class object. Remember all objects share the same behavior (meaning same set of methods.)

Q: ohh fine. Thanks Sir.[Rajesh Venkataraman] [rajvenka@gmail.com] [Q: 10:20 AM] 

Audience Question: 
Q: where does static methods() reside in memory & where does instance methods() reside.[Rajesh Venkataraman] [rajvenka@gmail.com] [Q: 10:19 AM] [A: 10:21 AM] 
A: So even the instance methods are in the Class object.

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

Audience Question: 
Q: Sang, the error that you were getting is it because that charAt does not exists in the String class?[Carlos Irigoyen] [carlosir@bellsouth.net] [Q: 10:20 AM] [A: 10:21 AM] 
A: No, it gets compile error because you are calling an instance method as if it was a static method.

Audience Question: 
Q: please explain Character.forDigit. I dont understand what radix part is?[Sonu Ahluwalia] [sonuahluwalia@hotmail.com] [Q: 10:20 AM] [A: 10:23 AM] 
A: isDigit() method checks if the a character is a digit ir not

Audience Question: 
Q: Been carrying a doubt for long... public static main() method, we dont use the class Name to call it.[Rajesh Venkataraman] [rajvenka@gmail.com] [Q: 10:22 AM] [A: 10:24 AM] 
A: main() is a special method and it gets called by Java runtime.

Audience Question: 
Q: So how does the main() invocation happen?[Rajesh Venkataraman] [rajvenka@gmail.com] [Q: 10:22 AM] [A: 10:24 AM] 
A: When the application gets started

Audience Question: 
Q: Is it required that Class names have the first character capitalized, or just common practice? It seems all default Java classes follow that scheme, correct?[Robert Mapes] [robertm@printnw.net] [Q: 10:22 AM] [A: 10:24 AM] 
A: No.  Capitalization of class name is a recommended convention Not a requirement.

Q: what does the radix part mean in forDigit() method?[Sonu Ahluwalia] [sonuahluwalia@hotmail.com] [Q: 10:25 AM] 

Audience Question: 
Q: question- in the excerise you call valueof, but you pass in an INT. Why woudl this not be a type casting issue and give a compiler error?[Joel kass] [hjoelkass@gmail.com] [Q: 10:26 AM] [A: 10:28 AM] 
A: If you see the API of valueof() method it expects int primitive type and we pass int primitive so there is no compile error.  If you pass long, it will cause a compile error

Q: ty[Joel kass] [hjoelkass@gmail.com] [Q: 10:29 AM] 

Q: done[Sonu Ahluwalia] [sonuahluwalia@hotmail.com] [Q: 10:31 AM] 

Q: I'm ready to continue.[Robert Mapes] [robertm@printnw.net] [Q: 10:31 AM] 

Q: class level variables go to heap ?[santhi peyathevar] [santhip@gmail.com] [Q: 10:37 AM] 

Q: can you call a local variable using a object?[Sonu Ahluwalia] [sonuahluwalia@hotmail.com] [Q: 10:37 AM] 

Q: yes access[Sonu Ahluwalia] [sonuahluwalia@hotmail.com] [Q: 10:37 AM] 

Q: parameters and method level var go to stack?[santhi peyathevar] [santhip@gmail.com] [Q: 10:38 AM] 

Q: yes[Sonu Ahluwalia] [sonuahluwalia@hotmail.com] [Q: 10:39 AM] 

Q: Is memory freed up once the code block it exists in ends?[Robert Mapes] [robertm@printnw.net] [Q: 10:43 AM] 

Q: yes[Sonu Ahluwalia] [sonuahluwalia@hotmail.com] [Q: 10:44 AM] 

Q: what is global variable?[Sonu Ahluwalia] [sonuahluwalia@hotmail.com] [Q: 10:47 AM] 

Q: Can we use static variable test inside the main method code block.. There is also a test variable in the code block.. Will there be a conflict?[Manny Marudhaiyan] [manavalanm@hotmail.com] [Q: 10:47 AM] 

Q: Thanks[Robert Mapes] [robertm@printnw.net] [Q: 10:47 AM] 

Q: in the example[Manny Marudhaiyan] [manavalanm@hotmail.com] [Q: 10:47 AM] 

Q: Thanls[Manny Marudhaiyan] [manavalanm@hotmail.com] [Q: 10:48 AM] 

Q: We cant declare a static varaiable inside a method() right[Rajesh Venkataraman] [rajvenka@gmail.com] [Q: 10:48 AM] 

Q: say, we can use it but declaration needs to be outisde a method(), isnt it[Rajesh Venkataraman] [rajvenka@gmail.com] [Q: 10:49 AM] 

Audience Question: 
Q: can you briefy clarify pass by value and reference? in your lab notes you state that reference types are passed by reference. From what i had read, java only has pass by value.[Joel kass] [hjoelkass@gmail.com] [Q: 10:57 AM] [A: 10:58 AM] 
A: primitive types are passed as "pass by value" but object types are passed as "pass by reference".

Q: question is from here: http://stackoverflow.com/questions/40480/is-java-pass-by-reference-or-pass-by-value . Says that there is no pass by reference in java.[Joel kass] [hjoelkass@gmail.com] [Q: 11:01 AM] [A: 11:04 AM] 
A: Will take a look

Q: I think i understand your point. it seems close to this:http://www.yoda.arachsys.com/java/passing.html. [Joel kass] [hjoelkass@gmail.com] [Q: 11:06 AM] [A: 11:08 AM] 
A: Thanks for sharing it.  Will take a look

Q: Done with exercise[Gokul Kale] [gokulskale@gmail.com] [Q: 11:13 AM] 

Q: I am OK[Carlos Irigoyen] [carlosir@bellsouth.net] [Q: 11:15 AM] 

Q: lets go -:)[Joel kass] [hjoelkass@gmail.com] [Q: 11:15 AM] 

Q: instance[Sonu Ahluwalia] [sonuahluwalia@hotmail.com] [Q: 11:31 AM] 

Q: instance[santhi peyathevar] [santhip@gmail.com] [Q: 11:31 AM] 

Q: instance[su chen] [javareq2@gmail.com] [Q: 11:31 AM] 

Q: no volume[Joel kass] [hjoelkass@gmail.com] [Q: 11:34 AM] 

Q: voice in in mute[su chen] [javareq2@gmail.com] [Q: 11:34 AM] 

Q: Mr.Shin I cant hear you[Roger Ramesh] [roger.m.ramesh@gmail.com] [Q: 11:34 AM] 

Q: :([Robert Mapes] [robertm@printnw.net] [Q: 11:34 AM] 

Q: not audible[Gokul Kale] [gokulskale@gmail.com] [Q: 11:34 AM] 

Q: tis back[Joel kass] [hjoelkass@gmail.com] [Q: 11:34 AM] 

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

Q: yes[su chen] [javareq2@gmail.com] [Q: 11:34 AM] 

Q: OK[Carlos Irigoyen] [carlosir@bellsouth.net] [Q: 11:34 AM] 

Q: ya[Sharada Bandaru] [sharada.bandaru6@gmail.com] [Q: 11:34 AM] 

Q: yes[Gokul Kale] [gokulskale@gmail.com] [Q: 11:34 AM] 

Q: Yes[Roger Ramesh] [roger.m.ramesh@gmail.com] [Q: 11:34 AM] 

Q: its out again[Joel kass] [hjoelkass@gmail.com] [Q: 11:35 AM] 

Q: voice is gone[Carlos Irigoyen] [carlosir@bellsouth.net] [Q: 11:35 AM] 

Q: Mr.Shin, I cant hear you[Roger Ramesh] [roger.m.ramesh@gmail.com] [Q: 11:36 AM] 

Q: bad static[Joel kass] [hjoelkass@gmail.com] [Q: 11:35 AM] 

Q: there is some disturbance we are unable to hear you[Sharada Bandaru] [sharada.bandaru6@gmail.com] [Q: 11:36 AM] 

Q: lot of disturbance[Sonu Ahluwalia] [sonuahluwalia@hotmail.com] [Q: 11:36 AM] 

Q: The sound doesn't work anymore[Daxu Yin] [daxuyin@yahoo.com] [Q: 11:36 AM] 

Audience Question: 
Q: we are able to hear you again[Sharada Bandaru] [sharada.bandaru6@gmail.com] [Q: 11:35 AM] [A: 11:36 AM] 
A: let's have 10 minutes break so that I can restart my router

Q: ok[Sharada Bandaru] [sharada.bandaru6@gmail.com] [Q: 11:36 AM] 

Q: yes[santhi peyathevar] [santhip@gmail.com] [Q: 11:46 AM] 

Q: yes[Daxu Yin] [daxuyin@yahoo.com] [Q: 11:46 AM] 

Q: yes[Roger Ramesh] [roger.m.ramesh@gmail.com] [Q: 11:46 AM] 

Q: Loud and clear.[Robert Mapes] [robertm@printnw.net] [Q: 11:46 AM] 

Q: yes[Sharada Bandaru] [sharada.bandaru6@gmail.com] [Q: 11:46 AM] 

Audience Question: 
Q: if time permits, can you explain the difference between autoboxing and unboxing in reference to this?[Joel kass] [hjoelkass@gmail.com] [Q: 11:43 AM] [A: 11:52 AM] 
A: we will cover this later on

Audience Question: 
Q: the topics like collections will be covered right ?[Sharada Bandaru] [sharada.bandaru6@gmail.com] [Q: 11:47 AM] [A: 11:52 AM] 
A: Yes, we will cover probably tomorrow

Q: for the code you provided in the lab, what would i use to print out the actual memory location itself so i coudl view it? [Joel kass] [hjoelkass@gmail.com] [Q: 11:52 AM] 

Q: actually, the identity hashcode is what i am looking for, how to print it.[Joel kass] [hjoelkass@gmail.com] [Q: 11:53 AM] 

Q: i got it, for the class if they are interested, its using the System.IdentityHashcode[Joel kass] [hjoelkass@gmail.com] [Q: 11:56 AM] 

Q:  int agesHash = System.identityHashCode(ages);
         System.out.println("The memory location is"+agesHash);[Joel kass] [hjoelkass@gmail.com] [Q: 11:56 AM] [A: 11:58 AM] 
A: You can also do ages.hashCode()

Q: ah ok[Joel kass] [hjoelkass@gmail.com] [Q: 11:59 AM] 

Q:  int agesHash = System.identityHashCode(ages);
         System.out.println("The memory location is"+agesHash);[Joel kass] [hjoelkass@gmail.com] [Q: 11:56 AM] [A: 11:59 AM] 
A: hashCode() is from Object class

Q: Sang: I lost connection, but I can not hear amything now, I just see that you are working on a project. Are we on break or doing exercises? Thanks[Carlos Irigoyen] [carlosir@bellsouth.net] [Q: 12:02 PM] 

Q: Great, thanks[Carlos Irigoyen] [carlosir@bellsouth.net] [Q: 12:03 PM] 

Audience Question: 
Q:  int agesHash = System.identityHashCode(ages);
         System.out.println("The memory location is"+agesHash);[Joel kass] [hjoelkass@gmail.com] [Q: 11:56 AM] [A: 12:06 PM] 
A: Actually the hashCode() method creates a hash for the String value not object. So only  System.identityHashCode(ages) works

Q: i was reading that there is a difference between System.IndentifyHashCode and hashcode form object class. Should we use one over the other?[Joel kass] [hjoelkass@gmail.com] [Q: 12:05 PM] [A: 12:07 PM] 
A: Ah, I just sent you the response before reading this.  

Q: I'm am done[Carlos Irigoyen] [carlosir@bellsouth.net] [Q: 12:11 PM] 

Q: im done[Joel kass] [hjoelkass@gmail.com] [Q: 12:11 PM] 

Audience Question: 
Q: you mentioned the class heirarchy in this lab. What code would li use to print out the heirarchy of all the classes called for a given method? That is, if i wanted to print str1 and show that String and Object are both called, what would i use?[Joel kass] [hjoelkass@gmail.com] [Q: 12:24 PM] [A: 12:30 PM] 
A: We are going to do exactly this in Java inheritance lab.  (take a look at the lab document of that lab if you want)

Q: cool! i tried to use some basic reflection with System.out.println(b2.getSuperclass().getName()); but it failed.[Joel kass] [hjoelkass@gmail.com] [Q: 12:30 PM] 

Audience Question: 
Q:  if( param instanceof Double) - "if" is needed for a test. Otherwise it is typecasting it.[santhi peyathevar] [santhip@gmail.com] [Q: 12:28 PM] [A: 12:32 PM] 
A: actually if should not be required.  Compiler definitely can tell if a particular object belongs to a type or not.  So instanceOf is used wthin the type hierarchy of the object.

Q: I'm ready[Robert Mapes] [robertm@printnw.net] [Q: 12:59 PM] 

Q: How to close project on eclipse ?[Dmitry Sandratsky] [damka76@yahoo.com] [Q: 1:13 PM] 

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

Q: one question for Eclipse[Joel kass] [hjoelkass@gmail.com] [Q: 1:17 PM] 

Q: how did you open template[mohan paralla] [sunny25286@gmail.com] [Q: 1:17 PM] 

Q: how do i print the stacktrace for a given class?[Joel kass] [hjoelkass@gmail.com] [Q: 1:17 PM] 

Q: to make our own command[mohan paralla] [sunny25286@gmail.com] [Q: 1:17 PM] 

Q: sout[mohan paralla] [sunny25286@gmail.com] [Q: 1:17 PM] 

Q: How to add dependant JARs in Eclipse[Rajesh Venkataraman] [rajvenka@gmail.com] [Q: 1:18 PM] 

Q: yes[mohan paralla] [sunny25286@gmail.com] [Q: 1:18 PM] 

Q: thanks[mohan paralla] [sunny25286@gmail.com] [Q: 1:18 PM] 

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

Q: Yes Sir,Difference between [Rajesh Venkataraman] [rajvenka@gmail.com] [Q: 1:19 PM] 

Q: Add External JARs and Add JARS[Rajesh Venkataraman] [rajvenka@gmail.com] [Q: 1:20 PM] 

Q: Does eclipse have any tool to convert ant based project to maven ?[Dmitry Sandratsky] [damka76@yahoo.com] [Q: 1:20 PM] 

Q: good question![Joel kass] [hjoelkass@gmail.com] [Q: 1:21 PM] 

Q: thanks :)[Dmitry Sandratsky] [damka76@yahoo.com] [Q: 1:22 PM] 

Audience Question: 
Q: How do we set PATH, CLASSPTH in eclipse?[Rajesh Venkataraman] [rajvenka@gmail.com] [Q: 1:23 PM] [A: 1:23 PM] 
A: forwarding..

Q: Ohh fine[Rajesh Venkataraman] [rajvenka@gmail.com] [Q: 1:24 PM] 

Q: No. was not aware of that[Rajesh Venkataraman] [rajvenka@gmail.com] [Q: 1:24 PM] 

Q: Thanks Sir[Rajesh Venkataraman] [rajvenka@gmail.com] [Q: 1:24 PM] 

Audience Question: 
Q: What is good practic to organize project ?[Dmitry Sandratsky] [damka76@yahoo.com] [Q: 1:25 PM] [A: 1:25 PM] 
A: give me a bit more context?

Q: Separation of packaes clasess [Dmitry Sandratsky] [damka76@yahoo.com] [Q: 1:25 PM] 

Audience Question: 
Q: What are the benefits of creating separate classes?[Roger Ramesh] [roger.m.ramesh@gmail.com] [Q: 1:31 PM] [A: 1:37 PM] 
A: Can you elaborate by what you mean by "separate classes"?

Audience Question: 
Q: What are the benefits of creating separate classes?[Roger Ramesh] [roger.m.ramesh@gmail.com] [Q: 1:31 PM] [A: 1:38 PM] 
A: Are you asking why we want to create a class?

Audience Question: 
Q: For example we have a class called "Student Record", then why do we need another class called "Student Record Example". Couldnt we have did all of the coding in one class[Roger Ramesh] [roger.m.ramesh@gmail.com] [Q: 1:39 PM] [A: 1:42 PM] 
A: Ah, I see.  We need a class that represents StudentRecord and another class that contains main() method.  Remember when use String or Integer class in our main() method, those classes are already created for you that is the reason you don;t have to create one yourself.  Now we are using a class that is not preexisting.  So we need to create class definition of it first.

Audience Question: 
Q: per the lab, what is a Anonymous static method?[Joel kass] [hjoelkass@gmail.com] [Q: 1:41 PM] [A: 1:43 PM] 
A: Anonymous static method is a static method that does not have a name.  It gets executed when a class is loaded.

Audience Question: 
Q: To clarify, In the lab, is the variable "temp" being declared and defined inside of the method setName()? This variable would be a local variable inside the parameter?[Robert Mapes] [robertm@printnw.net] [Q: 1:44 PM] [A: 1:45 PM] 
A: correct

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

Q: Done[Robert Mapes] [robertm@printnw.net] [Q: 1:51 PM] 

Q: What is Javabeans[Rajesh Venkataraman] [rajvenka@gmail.com] [Q: 1:58 PM] 

Q: Would you explain a little bit more about set and get[Carlos Irigoyen] [carlosir@bellsouth.net] [Q: 1:59 PM] 

Q: Do we create a getter/setter method for each data member[Roger Ramesh] [roger.m.ramesh@gmail.com] [Q: 2:00 PM] 

Q: a little bit more[Carlos Irigoyen] [carlosir@bellsouth.net] [Q: 2:00 PM] 

Q: Did you explained about constant  vars  ?[Dmitry Sandratsky] [damka76@yahoo.com] [Q: 2:01 PM] 

Q: OK, thanks[Carlos Irigoyen] [carlosir@bellsouth.net] [Q: 2:01 PM] 

Q: yes[Dmitry Sandratsky] [damka76@yahoo.com] [Q: 2:02 PM] 

Q: Now I got it. Thanks[Carlos Irigoyen] [carlosir@bellsouth.net] [Q: 2:06 PM] 

Q: What is encapsulation?[Roger Ramesh] [roger.m.ramesh@gmail.com] [Q: 2:07 PM] 

Q: So you hide the information?[Roger Ramesh] [roger.m.ramesh@gmail.com] [Q: 2:08 PM] 

Q: Yes[Roger Ramesh] [roger.m.ramesh@gmail.com] [Q: 2:09 PM] 

Audience Question: 
Q: can you tell me again about  ananymous static method?[su chen] [javareq2@gmail.com] [Q: 2:14 PM] [A: 2:16 PM] 
A: anonymouse static method is a method without a name.  That is the only difference from another non-anonymous static method.  because it does not have a name, it cannot be called by other classes.  So the only usage of it is initialization logic.

Q: a constactor ?[Dmitry Sandratsky] [damka76@yahoo.com] [Q: 2:16 PM] 

Q: and constactor ?[Dmitry Sandratsky] [damka76@yahoo.com] [Q: 2:16 PM] 

Audience Question: 
Q: Why I need to use anonimous statc method and not  a constractor ? [Dmitry Sandratsky] [damka76@yahoo.com] [Q: 2:15 PM] [A: 2:17 PM] 
A: Constructor is called when an object is created.  If you want to intialize class variables without creating an object, then anonymous static method could be used.

Q: ok.thanks[Dmitry Sandratsky] [damka76@yahoo.com] [Q: 2:18 PM] 

Audience Question: 
Q: What is meant by singleton class?[Karthika Mani] [karthikacareers@gmail.com] [Q: 2:16 PM] [A: 2:18 PM] 
A: A singleton class means there could be only single object instance of that class in the system.

Audience Question: 
Q: What is meant by singleton class?[Karthika Mani] [karthikacareers@gmail.com] [Q: 2:16 PM] [A: 2:20 PM] 
A: For example, if you want create an object that keeps track of performance data of your application, you want to create a single object in the whole system.  So you create a singleton object.  Singleton object can be created through what is called factory pattern.

Q: yes[Dmitry Sandratsky] [damka76@yahoo.com] [Q: 2:25 PM] 

Q: almost done[Joel kass] [hjoelkass@gmail.com] [Q: 2:25 PM] 

Q: is what you just posted an example of chaining constructors?[Joel kass] [hjoelkass@gmail.com] [Q: 2:34 PM] 

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

Audience Question: 
Q: with constructor chaining, when would you use super?[Joel kass] [hjoelkass@gmail.com] [Q: 2:47 PM] [A: 2:50 PM] 
A: constructor chaining we talked about is within a single class while super() is used to chain constructors between child and parent classes.

Q: good summary[santhi peyathevar] [santhip@gmail.com] [Q: 3:09 PM] 

Audience Question: 
Q: not sure if we have enough time, but you could just very briefly go over what an inner class is and why/when we shoudl use it? Thanks -:)[Joel kass] [hjoelkass@gmail.com] [Q: 3:18 PM] [A: 3:19 PM] 
A: OK.  Will do.

Q: yes[Dmitry Sandratsky] [damka76@yahoo.com] [Q: 3:31 PM] 

Q: yes[Joel kass] [hjoelkass@gmail.com] [Q: 3:31 PM] 

Q: import is not necessary even if in different sub packages?[Sharada Bandaru] [sharada.bandaru6@gmail.com] [Q: 3:38 PM] 

Q: Will importing all the classes affect program memory usage, or will memory usage increase only once the class has been instantiated?[Robert Mapes] [robertm@printnw.net] [Q: 3:41 PM] 

Q: Is the scanner an example of a package?[Roger Ramesh] [roger.m.ramesh@gmail.com] [Q: 3:42 PM] 

Audience Question: 
Q: if I import 2 packages that containe classes with same name .how to avoid confilcts ? [Dmitry Sandratsky] [damka76@yahoo.com] [Q: 3:41 PM] [A: 3:42 PM] 
A: forwarding

Q: use the full qualified name as it should be unique[Joel kass] [hjoelkass@gmail.com] [Q: 3:43 PM] 

Q: Yes[Roger Ramesh] [roger.m.ramesh@gmail.com] [Q: 3:43 PM] 

Q: yes[Joel kass] [hjoelkass@gmail.com] [Q: 3:43 PM] 

Q: version*[Robert Mapes] [robertm@printnw.net] [Q: 3:49 PM] 

Audience Question: 
Q: Is a jar a compiled collection and condensed versopm of all java files?[Robert Mapes] [robertm@printnw.net] [Q: 3:49 PM] [A: 3:49 PM] 
A: forwarding.

Audience Question: 
Q: Is the classpath only for classes, what about data files[Carlos Irigoyen] [carlosir@bellsouth.net] [Q: 3:54 PM] [A: 4:04 PM] 
A: Classpath is mostly for class files.  But you could have resource files in the classpath as well.  For example, in Maven, the directory of /src/main/resources is the directory you want to maintain your resource files and these resource files could be searched according to the classpath

Audience Question: 
Q: If you specify multiple directories will it stop once it finds it even if Hello.class was in multiple places[Robert Mapes] [robertm@printnw.net] [Q: 4:00 PM] [A: 4:04 PM] 
A: Correct.  Once it finds it, it stops searching.

Q: Ready[Robert Mapes] [robertm@printnw.net] [Q: 4:09 PM] 

Q: package [santhi peyathevar] [santhip@gmail.com] [Q: 4:17 PM] 

Q: In the wrong directory still[Robert Mapes] [robertm@printnw.net] [Q: 4:17 PM] 

Q: How do we submit the homework?[Roger Ramesh] [roger.m.ramesh@gmail.com] [Q: 4:19 PM] 

Q: Yes[Roger Ramesh] [roger.m.ramesh@gmail.com] [Q: 4:20 PM] 

Audience Question: 
Q: Thank you, another great day. I hope my brains can handle it. Regards. Carlos[Carlos Irigoyen] [carlosir@bellsouth.net] [Q: 4:26 PM] [A: 4:26 PM] 
A: :-) 

Q: thank you![Joel kass] [hjoelkass@gmail.com] [Q: 4:33 PM] 

Q: Thank you for the wonderful class. You explained everything in detail and was very easy to understand.[Karthika Mani] [karthikacareers@gmail.com] [Q: 4:33 PM] 

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

Q: Thanks, for today's lesson[Roger Ramesh] [roger.m.ramesh@gmail.com] [Q: 4:34 PM]