Questions Log   C:\1passion.labs\handson_javase_adv\QuestionsLog 2015_08_28 15_10.rtf

Audience Question: 
Q: do you upload lambda classes online?[sujatha chennupati] [javareq2@gmail.com] [Q: 9:42 AM] [A: 9:43 AM] 
A: Yes, the slides and handson labs are there under "advanced java programming" course.

Audience Question: 
Q: do you upload lambda classes online?[sujatha chennupati] [javareq2@gmail.com] [Q: 9:42 AM] [A: 9:45 AM] 
A: Recordings of today's codecamp will be posted tonight

Q: yes[joel kass] [hjoelkass@gmail.com] [Q: 9:46 AM] 

Q: yes[Serghei Radov] [sradov@lohika.com] [Q: 9:48 AM] 

Q: C#[Serghei Radov] [sradov@lohika.com] [Q: 9:48 AM] 

Q: yes i had lamda calculus and some scheme, but not alot.[joel kass] [hjoelkass@gmail.com] [Q: 9:48 AM] 

Q: alonzo church, exc[joel kass] [hjoelkass@gmail.com] [Q: 9:48 AM] 

Audience Question: 
Q: thanks for the classes so far but it would be great if you could have a session on concurrency package as well[Mudassar Hakim] [mudassar.trainer@gmail.com] [Q: 9:48 AM] [A: 9:49 AM] 
A: We will see how it goes today...

Q: sure, thanks[Mudassar Hakim] [mudassar.trainer@gmail.com] [Q: 9:50 AM] 

Audience Question: 
Q: one question i had, you will likely cover this at the start is: how prevalent is java 8 with lamda and streams actually being used in industry today?[joel kass] [hjoelkass@gmail.com] [Q: 9:50 AM] [A: 9:51 AM] 
A: It is being adopted very rapidly..  in mt opinion.

Audience Question: 
Q: one question i had, you will likely cover this at the start is: how prevalent is java 8 with lamda and streams actually being used in industry today?[joel kass] [hjoelkass@gmail.com] [Q: 9:50 AM] [A: 9:54 AM] 
A: https://plumbr.eu/blog/java/java-version-statistics-2015-edition

Audience Question: 
Q: Hi Sang, I need to write an Interactive application. What I mean is that the user will enter some data, the application will validate the data, and create a file or display the error if there is any. What would be my path in order to accomplish that. Thank you[Carlos Irigoyen] [carlosir@bellsouth.net] [Q: 9:54 AM] [A: 9:55 AM] 
A: are you building web app or standalone app?

Q: It is a Time Entry application[Carlos Irigoyen] [carlosir@bellsouth.net] [Q: 9:56 AM] 

Audience Question: 
Q: It will be a web application, we have three hundred users[Carlos Irigoyen] [carlosir@bellsouth.net] [Q: 9:56 AM] [A: 9:56 AM] 
A: next question, are you using java or other language?

Audience Question: 
Q: also a humble request is that it would be great to have a session on jvm and is internal working like the Eden generation, perm space[Mudassar Hakim] [mudassar.trainer@gmail.com] [Q: 9:56 AM] [A: 9:57 AM] 
A: took a note on it.

Q: thanks[Mudassar Hakim] [mudassar.trainer@gmail.com] [Q: 9:57 AM] 

Audience Question: 
Q: I will be using Java[Carlos Irigoyen] [carlosir@bellsouth.net] [Q: 9:57 AM] [A: 9:57 AM] 
A: you can probably use any of the popular mvc framework the task

Q: it's needed when we look to fine tune the java application[Mudassar Hakim] [mudassar.trainer@gmail.com] [Q: 9:57 AM] 

Audience Question: 
Q: could you explain please[Carlos Irigoyen] [carlosir@bellsouth.net] [Q: 9:58 AM] [A: 9:58 AM] 
A: seems like a very simple task.  SpringMVC or Play or Grails..

Q: Will try. Thanks[Carlos Irigoyen] [carlosir@bellsouth.net] [Q: 9:59 AM] 

Q: how Lambda is differenct then SCALA[Lokesh Jain] [myj_lokesh@yahoo.co.uk] [Q: 10:06 AM] 

Q: ?[Lokesh Jain] [myj_lokesh@yahoo.co.uk] [Q: 10:06 AM] 

Q: yes[Lokesh Jain] [myj_lokesh@yahoo.co.uk] [Q: 10:07 AM] 

Q: Can you show how MyFunctionalInterface is defined ?[Petros Pissias] [petros.pissias@esa.int] [Q: 10:12 AM] 

Q: it was mentioned that the siongle interface method must be declared as abstract? Can you please elaborate on this? [Petros Pissias] [petros.pissias@esa.int] [Q: 10:15 AM] 

Q: methods  in functional interface should be abstarct or regulasr[Dmirtry Sandratsky] [damka76@yahoo.com] [Q: 10:15 AM] 

Q: ?[Dmirtry Sandratsky] [damka76@yahoo.com] [Q: 10:15 AM] 

Q: ok[Dmirtry Sandratsky] [damka76@yahoo.com] [Q: 10:16 AM] 

Q: Where is the function variable (multiply) being declared? In the source code?[Robert Mapes] [itsrobertm@gmail.com] [Q: 10:21 AM] 

Q: Can I have multiple statements in the body of Lambda Expression[Rajesh Venkataraman] [perlamrith@gmail.com] [Q: 10:22 AM] 

Q: Outside of the interface code block. Sorry, which code block would you declare it in?[Robert Mapes] [itsrobertm@gmail.com] [Q: 10:22 AM] 

Q: Dose it implementation or bisness logic ? [Dmirtry Sandratsky] [damka76@yahoo.com] [Q: 10:22 AM] 

Q: Is there any pripnciples which we need to understand for functional programing...kind of rules where we can use lambda?[Lokesh Jain] [myj_lokesh@yahoo.co.uk] [Q: 10:22 AM] 

Q: Perfect, thanks.[Robert Mapes] [itsrobertm@gmail.com] [Q: 10:23 AM] 

Q: Should Lamda Expressions (LE) always have a return type since its assigned to a variable[Rajesh Venkataraman] [perlamrith@gmail.com] [Q: 10:24 AM] 

Q: How it is different from calculator class having multiply and divide behaviours?[Madhusudhanan Donadi Subramanyam] [d.madhusudhan@gmail.com] [Q: 10:24 AM] 

Q: is it advisable to use lambda expression if we have multiple statements?[Char Hacinas] [charmaine.hacinas@98labs.com] [Q: 10:24 AM] 

Audience Question: 
Q: Where can I access the excercises page you are viewing ? [Petros Pissias] [petros.pissias@esa.int] [Q: 10:32 AM] [A: 10:34 AM] 
A: They are under "advanced java programming" course of Jpassion.com

Audience Question: 
Q: when we say ((x,y)->x*y,(x,y)->x/y)) how does it know that we are referring to Calculator , there can be other functional interface with this behavior[Mudassar Hakim] [mudassar.trainer@gmail.com] [Q: 10:35 AM] [A: 10:37 AM] 
A: Because myMethod is defined as myMethod(Calcular m, Calcular d)

Audience Question: 
Q: what about exception?[Lokesh Jain] [myj_lokesh@yahoo.co.uk] [Q: 10:25 AM] [A: 10:37 AM] 
A: You can define your method in the function interface to throw an exception

Q: I have written the below snippet :public class MyLambdaClass {
	public static void main(String args[]){
	 MyGreetingInterface myvar = (name)->System.out.println("Hello" +name);

	myvar.sayHello("Sang");
	}

}[Rajesh Venkataraman] [perlamrith@gmail.com] [Q: 10:40 AM] 

Audience Question: 
Q: my eclipse is not recognizing the lambda expression..it is saying syntax error on -, --expected. define var x etc[Lokesh Jain] [myj_lokesh@yahoo.co.uk] [Q: 10:40 AM] [A: 10:41 AM] 
A: Make sure your eclipse is using Java 8

Q: can you please show again how to create the working set to display all the maven project in a single folder[Mudassar Hakim] [mudassar.trainer@gmail.com] [Q: 10:41 AM] 

Audience Question: 
Q: But it says, D:\myjava\LambdaExpressions>javac MyLambdaClass.java
MyLambdaClass.java:3: error: illegal start of expression
         MyGreetingInterface myvar = (name)->System.out.println("Hello" +name);
                                            ^
1 error[Rajesh Venkataraman] [perlamrith@gmail.com] [Q: 10:40 AM] [A: 10:41 AM] 
A: Are you using Java 8?

Q: it was "1.8.0_31"[Rajesh Venkataraman] [perlamrith@gmail.com] [Q: 10:42 AM] 

Q: yes[Lokesh Jain] [myj_lokesh@yahoo.co.uk] [Q: 10:42 AM] 

Audience Question: 
Q: I am running from command prompt & checkd the version[Rajesh Venkataraman] [perlamrith@gmail.com] [Q: 10:41 AM] [A: 10:43 AM] 
A: the command line java version and java version that eclipse is using could be different

Audience Question: 
Q: can't find the working set option[Mudassar Hakim] [mudassar.trainer@gmail.com] [Q: 10:43 AM] [A: 10:44 AM] 
A: Are you saying you cannot fine New->Java Working Set?

Q: got it[Mudassar Hakim] [mudassar.trainer@gmail.com] [Q: 10:44 AM] 

Q: During the typing code in Idea I got complains that y is already defined as variable. [Serghei Radov] [sradov@lohika.com] [Q: 10:44 AM] 

Q: The expression System.out.println(name); does not return a String, so it does not match the method signature[Petros Pissias] [petros.pissias@esa.int] [Q: 10:44 AM] 

Q: So, I needed to put y1 in the strings. [Serghei Radov] [sradov@lohika.com] [Q: 10:44 AM] 

Q: Is it OK?[Serghei Radov] [sradov@lohika.com] [Q: 10:44 AM] 

Q: Error:(10, 34) java: variable y is already defined in method main(java.lang.String[])[Serghei Radov] [sradov@lohika.com] [Q: 10:45 AM] 

Q: typo -subtract[joel kass] [hjoelkass@gmail.com] [Q: 10:46 AM] 

Q: it's asking to add resources and even after adding i can't see it in my package explorer[Mudassar Hakim] [mudassar.trainer@gmail.com] [Q: 10:47 AM] 

Q: String sayHello(String name); Dosent it should be void ? body is println.[Dmirtry Sandratsky] [damka76@yahoo.com] [Q: 10:47 AM] 

Q: I am facing issue with complilation though i aam using jre 1.8[Lokesh Jain] [myj_lokesh@yahoo.co.uk] [Q: 10:46 AM] [A: 10:47 AM] 
A: are you experiencing compile error in eclipse?  the imported projects are OK?

Q: yes[Lokesh Jain] [myj_lokesh@yahoo.co.uk] [Q: 10:47 AM] 

Q: I had a typo, thanks[Serghei Radov] [sradov@lohika.com] [Q: 10:48 AM] 

Audience Question: 
Q: if i want to pass the new subtrace lamda as an argument, would i add someMethod (multiply, divide, subtract); and then adjust Calculator.java to be int calculate(int x, int y, int z);?[joel kass] [hjoelkass@gmail.com] [Q: 10:46 AM] [A: 10:49 AM] 
A: no, You don't change Calculator interface =

Audience Question: 
Q: I have imported first project and it is not recognizing the lambda[Lokesh Jain] [myj_lokesh@yahoo.co.uk] [Q: 10:48 AM] [A: 10:49 AM] 
A: That means your eclipse is not configured with java 8

Audience Question: 
Q: I checked my build path it is showing jre 1.8[Lokesh Jain] [myj_lokesh@yahoo.co.uk] [Q: 10:48 AM] [A: 10:49 AM] 
A: You need JDK 8 not JRE 8

Audience Question: 
Q: Is it like with each Functional Interface Variable I can simulate different ijmplementations of my abstract method and bring about "Method Overloading" kind of behaviour[Rajesh Venkataraman] [perlamrith@gmail.com] [Q: 10:49 AM] [A: 10:51 AM] 
A: correct

Q: Yes[Robert Mapes] [itsrobertm@gmail.com] [Q: 10:51 AM] 

Q: i did it[joel kass] [hjoelkass@gmail.com] [Q: 10:51 AM] 

Q: I need to install 8[Carlos Irigoyen] [carlosir@bellsouth.net] [Q: 10:51 AM] 

Audience Question: 
Q: I have 1.8.0.11 - should be ok ?[santhi peyathevar] [santhip@gmail.com] [Q: 10:51 AM] [A: 10:52 AM] 
A: yes

Q: ok :)[Dmirtry Sandratsky] [damka76@yahoo.com] [Q: 10:58 AM] 

Audience Question: 
Q: I tald you :) it should void [Dmirtry Sandratsky] [damka76@yahoo.com] [Q: 10:56 AM] [A: 10:59 AM] 
A: Good discovery...

Q: this gives compilation error:        MyGreetingInterface greet = (name)-> System.out.println("Hello" + name) ;[santhi peyathevar] [santhip@gmail.com] [Q: 10:47 AM] [A: 11:00 AM] 
A: Looks like it is my fault in the document.  It should return void as I said.  :-)

Audience Question: 
Q: so that doesn't really matter？[Yiguang Hu] [yiguang.hu@gmail.com] [Q: 11:00 AM] [A: 11:00 AM] 
A: Give me more context of your question...

Audience Question: 
Q: the name[Yiguang Hu] [yiguang.hu@gmail.com] [Q: 11:01 AM] [A: 11:02 AM] 
A: The name of the method in the Functional interface indeed does not matter.

Q: done[Dmirtry Sandratsky] [damka76@yahoo.com] [Q: 11:02 AM] 

Q: done[Petros Pissias] [petros.pissias@esa.int] [Q: 11:02 AM] 

Q: y[santhi peyathevar] [santhip@gmail.com] [Q: 11:02 AM] 

Q: what if the anonymous inner class has 2 methods?[Mudassar Hakim] [mudassar.trainer@gmail.com] [Q: 11:06 AM] 

Q: ok[Mudassar Hakim] [mudassar.trainer@gmail.com] [Q: 11:06 AM] 

Q: don't you need a parenthesis around e -> like: (e) -> ? [Petros Pissias] [petros.pissias@esa.int] [Q: 11:08 AM] 

Q: After e shoudlnt we have closing )[Rajesh Venkataraman] [perlamrith@gmail.com] [Q: 11:08 AM] 

Audience Question: 
Q: We still have to define @FunctionalInterface for Runnable?[santhi peyathevar] [santhip@gmail.com] [Q: 11:06 AM] [A: 11:13 AM] 
A: no, it is already defined in jdk

Audience Question: 
Q: should not there be a return in the comparator example[Mudassar Hakim] [mudassar.trainer@gmail.com] [Q: 11:13 AM] [A: 11:14 AM] 
A: If the body contains a single expression, the return statement does not need to be there.  We are going to learn these syntaxes in detail in the following slides.

Q: Hi [gokul kale] [gokulskale@gmail.com] [Q: 11:19 AM] 

Q: using jdk 8 only.[gokul kale] [gokulskale@gmail.com] [Q: 11:24 AM] 

Audience Question: 
Q: I just joined and was going through 1st assignment but i can see error in main class in eclipse imported project and using jdk 8.[gokul kale] [gokulskale@gmail.com] [Q: 11:20 AM] [A: 11:25 AM] 
A: Ok. can you do RunAs->Maven Install?

Q: its running successfully, but eclipse is not resolving compile error.[gokul kale] [gokulskale@gmail.com] [Q: 11:27 AM] [A: 11:27 AM] 
A: Right click the project, select Maven and select update project

Q: Exception in thread "main" java.lang.Error: Unresolved compilation problems: 
	x cannot be resolved to a variable
	Syntax error on token ",", . expected
	Syntax error on token "-", -- expected
	x cannot be resolved to a variable
	y cannot be resolved to a variable
	x cannot be resolved to a variable
	Syntax error on token ",", . expected
	Syntax error on token "-", -- expected
	x cannot be resolved to a variable
	y cannot be resolved to a variable
	x cannot be resolved to a variable
	Syntax error on token ",", . expected
	Syntax error on token "-", -- expected
	x cannot be resolved to a variable
	y cannot be resolved to a variable
	x cannot be resolved to a variable
	Syntax error on token ",", . expected
	Syntax error on token "-", -- expected
	x cannot be resolved to a variable
	y cannot be resolved to a variable

	at mypackage.Main.main(Main.java:8)
[gokul kale] [gokulskale@gmail.com] [Q: 11:27 AM] 

Q: do you upload lambda classes online?[sujatha chennupati] [javareq2@gmail.com] [Q: 9:42 AM] [A: 11:28 AM] 
A: The above seems like a cimpile error. Do you experience a compile error?

Q: ok[gokul kale] [gokulskale@gmail.com] [Q: 11:27 AM] [A: 11:29 AM] 
A: Is this happening after you set the jdk to 1.8 in eclipse or is this happening from the beginning?

Q: default key word in Java 8[joel kass] [hjoelkass@gmail.com] [Q: 11:30 AM] 

Q: can you add non default methods to the Interface by using default? this way you could have multiple methods in the functional interface.[joel kass] [hjoelkass@gmail.com] [Q: 11:29 AM] [A: 11:30 AM] 
A: correct.  It is the topic I need to add to the java 8 lambda programming indeed.

Q: Does possible to use generics in  lambda method  declaration ? [Dmirtry Sandratsky] [damka76@yahoo.com] [Q: 11:36 AM] 

Q: HI Sang,I just joined because of other job meeting. so what were the prequisition for this lambada class[mohan paralla] [sunny25286@gmail.com] [Q: 11:39 AM] 

Q: There is a typo in the example I think, instead of "System.out.println("multiplication = ", x*y);" it should be "System.out.println("multiplication = " + x*y);"[Petros Pissias] [petros.pissias@esa.int] [Q: 11:41 AM] 

Q: java 8 ?[mohan paralla] [sunny25286@gmail.com] [Q: 11:39 AM] [A: 11:42 AM] 
A: yes

Q: Typo: replace comma with "+"[santhi peyathevar] [santhip@gmail.com] [Q: 11:43 AM] 

Q: maven ?[mohan paralla] [sunny25286@gmail.com] [Q: 11:43 AM] [A: 11:43 AM] 
A: yes

Q: System.out.println("multiplication = "+ x*y)[santhi peyathevar] [santhip@gmail.com] [Q: 11:43 AM] [A: 11:44 AM] 
A: thanks

Q: Dont understand an use case for this scenario[Rajesh Venkataraman] [perlamrith@gmail.com] [Q: 11:52 AM] 

Q: Example is clear but dont know when would I use it[Rajesh Venkataraman] [perlamrith@gmail.com] [Q: 11:52 AM] 

Q: Its simpler but less readble :)[Dmirtry Sandratsky] [damka76@yahoo.com] [Q: 11:52 AM] 

Q: method names can be  different ?[santhi peyathevar] [santhip@gmail.com] [Q: 11:53 AM] 

Q: So for the consistency we should not use lambda exp only?[Lokesh Jain] [myj_lokesh@yahoo.co.uk] [Q: 11:53 AM] 

Q: would be a problem in case of method overloading[Mudassar Hakim] [mudassar.trainer@gmail.com] [Q: 11:54 AM] 

Q: Here the Class is not implementing the Inetrface but still we are using it to refer it[Rajesh Venkataraman] [perlamrith@gmail.com] [Q: 11:54 AM] 

Q: Please publish this Q&A log also... through File -> Save Question Log... It really helps :)[Vicky B] [shai.ban001@gmail.com] [Q: 11:54 AM] 

Q: So I feel Polymorphism is lost here[Rajesh Venkataraman] [perlamrith@gmail.com] [Q: 11:54 AM] 

Q: was referring to the::[Mudassar Hakim] [mudassar.trainer@gmail.com] [Q: 11:55 AM] 

Q: Sang, If application is already deployed in production with java 7 , If we deploy this developed new req with lamda 8 we have to upgrade all prodcution server to java 8 ?[mohan paralla] [sunny25286@gmail.com] [Q: 11:55 AM] 

Q: not clear I will email you . [mohan paralla] [sunny25286@gmail.com] [Q: 11:59 AM] 

Q: Thanks [mohan paralla] [sunny25286@gmail.com] [Q: 11:59 AM] 

Q: jdk1.8.0_60 . i have only jdk 8 , still importing error exist. [gokul kale] [gokulskale@gmail.com] [Q: 12:13 PM] 

Q: Incase if polymorphism which method will be called?[Mahesh Voora] [mahesh.voora@yahoo.com] [Q: 12:06 PM] [A: 12:14 PM] 
A: There is no polymorphism involved here.

Audience Question: 
Q: Only Static methods() can be called using Lambda Expressions, is it, since we call it via Class Name.methodName()[Rajesh Venkataraman] [perlamrith@gmail.com] [Q: 12:07 PM] [A: 12:14 PM] 
A: No as you have seen the existing methods can be static method or instance method

Audience Question: 
Q: where can I find the labs scripts[rodik va] [rodikva@palbailador.de] [Q: 12:10 PM] [A: 12:15 PM] 
A: From http://jpassion.com   You have to be paying member in order to access the lab contents

Audience Question: 
Q: is lambda only syntax sugar or it is a diiferent style of coding....?[Lokesh Jain] [myj_lokesh@yahoo.co.uk] [Q: 12:14 PM] [A: 12:16 PM] 
A: Lambda expression is much much more than synax sugar.

Q: its not resolve yet. any other tricks?[gokul kale] [gokulskale@gmail.com] [Q: 12:13 PM] [A: 12:16 PM] 
A: Can you use NetBeans for now?

Audience Question: 
Q: is lambda only syntax sugar or it is a diiferent style of coding....?[Lokesh Jain] [myj_lokesh@yahoo.co.uk] [Q: 12:14 PM] [A: 12:19 PM] 
A: Basically with Lambda expression, you can now do functional programming in Java and that is huge!!  You will see that more clear when we learn "streams"

Q: not able to hear anything...[gokul kale] [gokulskale@gmail.com] [Q: 12:40 PM] 

Q: I'm paying member but when I go to jpassion to the webinar i get the form to register only [rodik va] [rodikva@palbailador.de] [Q: 12:21 PM] [A: 12:48 PM] 
A: You are already in the webinar.  You go to jpassion.com to get the contents (labs)

Q: sorry i was disconnected. are we in break now?[gokul kale] [gokulskale@gmail.com] [Q: 12:33 PM] [A: 12:48 PM] 
A: yes

Q: After importing all projects in eclipse, the project in folder " lambda_MethodReference_instance_method_of_arbitrary_object_02" has the name "lambda_MethodReference_static_method4". Could be a problem in my own environment, I 'm just mentioning it in case is a general issue[Petros Pissias] [petros.pissias@esa.int] [Q: 1:06 PM] [A: 1:08 PM] 
A: When did you download the zip file?

Q: After importing all projects in eclipse, the project in folder " lambda_MethodReference_instance_method_of_arbitrary_object_02" has the name "lambda_MethodReference_static_method4". Could be a problem in my own environment, I 'm just mentioning it in case is a general issue[Petros Pissias] [petros.pissias@esa.int] [Q: 1:06 PM] [A: 1:09 PM] 
A: You have to download the latest, which should not have the problems you are experiencing.

Q: yes[santhi peyathevar] [santhip@gmail.com] [Q: 1:09 PM] 

Audience Question: 
Q: so for intPredicate we dont need @functional interface?[Lokesh Jain] [myj_lokesh@yahoo.co.uk] [Q: 1:17 PM] [A: 1:20 PM] 
A: It is already defined in the JDK meaning you don't have to define it yourself.  It is usally a good practice to use @FunctionalInterface annotation when you define a functional interface and JDK does follow that recommendation as you can see.

Q: println return void as well[Dmirtry Sandratsky] [damka76@yahoo.com] [Q: 1:31 PM] 

Q: resolved eclipse ompiler issue --> set compiler level to 1.8 which current ide was not supporting.[gokul kale] [gokulskale@gmail.com] [Q: 1:45 PM] [A: 1:46 PM] 
A: good news

Q: typo: I meant "what access do we have"[Petros Pissias] [petros.pissias@esa.int] [Q: 1:51 PM] 

Audience Question: 
Q: In Lambda expressions, what access to we have to local variables ? are there any restrictions ?[Petros Pissias] [petros.pissias@esa.int] [Q: 1:50 PM] [A: 1:51 PM] 
A: We are going to cover that as the last topic of this presentation

Q: y[santhi peyathevar] [santhip@gmail.com] [Q: 2:09 PM] 

Q: So you are casting <T> to List<T> to find correct?[Robert Mapes] [itsrobertm@gmail.com] [Q: 2:12 PM] 

Audience Question: 
Q: public static <T> List<T> , the first <T> being the cast (T being any type)[Robert Mapes] [itsrobertm@gmail.com] [Q: 2:13 PM] [A: 2:14 PM] 
A: forwarding

Q: yes, thank you[Robert Mapes] [itsrobertm@gmail.com] [Q: 2:17 PM] 

Audience Question: 
Q: Is stream<T> already avalable or we need to write a function like we have written for predicate?[Lokesh Jain] [myj_lokesh@yahoo.co.uk] [Q: 2:20 PM] [A: 2:22 PM] 
A: it is provided by JDK already

Q: cannot download the labs[rodik va] [rodikva@palbailador.de] [Q: 2:32 PM] [A: 2:33 PM] 
A: are you a paying member of JPassion.com?

Q: yes. When I go to the webinar site i ws redirected to the registration page again and again[rodik va] [rodikva@palbailador.de] [Q: 2:33 PM] [A: 2:35 PM] 
A: The labs are from http://jpassion.com  Go to the "advanced java programming" course and lambda labs are at the end

Q: ok thnak you[rodik va] [rodikva@palbailador.de] [Q: 2:35 PM] 

Q: yes[joel kass] [hjoelkass@gmail.com] [Q: 2:41 PM] 

Q: What the the significance of 2 time Person[Lokesh Jain] [myj_lokesh@yahoo.co.uk] [Q: 2:46 PM] 

Q: OK[Lokesh Jain] [myj_lokesh@yahoo.co.uk] [Q: 2:47 PM] 

Q: In the example, The return type of the function is not used ? [Petros Pissias] [petros.pissias@esa.int] [Q: 2:47 PM] 

Q: 26[Petros Pissias] [petros.pissias@esa.int] [Q: 2:48 PM] 

Q: the R[Petros Pissias] [petros.pissias@esa.int] [Q: 2:48 PM] 

Q: Function <T,R>[Petros Pissias] [petros.pissias@esa.int] [Q: 2:48 PM] 

Q: Ok thanks[Petros Pissias] [petros.pissias@esa.int] [Q: 2:48 PM] 

Q: yes[Petros Pissias] [petros.pissias@esa.int] [Q: 3:01 PM] 

Q: yes[Dmirtry Sandratsky] [damka76@yahoo.com] [Q: 3:09 PM] 

Q: i almost have it[joel kass] [hjoelkass@gmail.com] [Q: 3:09 PM] 

Q: yes[Petros Pissias] [petros.pissias@esa.int] [Q: 3:09 PM] 

Q: In example you using specific obects cheks in generic function.how to avoid it ?  [Dmirtry Sandratsky] [damka76@yahoo.com] [Q: 3:10 PM] 

Q: 	public static <T> void displayResult(String prefix, List<T> results) {
		System.out.print(prefix);
		for (T item : results) {
			String name = (item instanceof Person) ? ((Person) item).getName()
					: ((Fruit) item).getName();
			System.out.print(name + " ");
		}
		System.out.println();
	}

}[Dmirtry Sandratsky] [damka76@yahoo.com] [Q: 3:10 PM] 

Q: Downloaded todey [Dmirtry Sandratsky] [damka76@yahoo.com] [Q: 3:11 PM] 

Q: today[Dmirtry Sandratsky] [damka76@yahoo.com] [Q: 3:11 PM] 

Q: lambda_fi_Function_refactoring_complete[Dmirtry Sandratsky] [damka76@yahoo.com] [Q: 3:11 PM] 

Q: 	// Utility method to display list of people or fruits[Dmirtry Sandratsky] [damka76@yahoo.com] [Q: 3:11 PM] 

Q: at the code[Dmirtry Sandratsky] [damka76@yahoo.com] [Q: 3:13 PM] 

Q: i will download again[Dmirtry Sandratsky] [damka76@yahoo.com] [Q: 3:13 PM] 

Q: my function looks also different[Petros Pissias] [petros.pissias@esa.int] [Q: 3:13 PM] 

Q: exercise: We has to replace the displayResult() code. May be someone is adding it[santhi peyathevar] [santhip@gmail.com] [Q: 3:13 PM] 

Q: OK thanks I'll get the latest[Petros Pissias] [petros.pissias@esa.int] [Q: 3:15 PM] 

Q: yes[joel kass] [hjoelkass@gmail.com] [Q: 3:16 PM] 

Q: y[santhi peyathevar] [santhip@gmail.com] [Q: 3:20 PM] 

Audience Question: 
Q: Can you please confirm that also 1611_javase8_lambda_part1 is the latest version ? I had this problem with the project name being different (lambda_MethodReference_static_method4). Just to be sure.[Petros Pissias] [petros.pissias@esa.int] [Q: 3:25 PM] [A: 3:26 PM] 
A: The one on the website is definitely up to date one

Q: Can you please confirm that also 1611_javase8_lambda_part1 is the latest version ? I had this problem with the project name being different (lambda_MethodReference_static_method4). Just to be sure.[Petros Pissias] [petros.pissias@esa.int] [Q: 3:25 PM] [A: 3:27 PM] 
A: You have to delete old projects in eclipse before you unzip otherwise, it might still keep the old files. 

Q: OK thanks [Petros Pissias] [petros.pissias@esa.int] [Q: 3:28 PM] 

Audience Question: 
Q: Is Function.apply(..) a standard method ?[santhi peyathevar] [santhip@gmail.com] [Q: 3:28 PM] [A: 3:29 PM] 
A: In a sense assuming you are using JDK provided Function interface.  If you don't like it, you can create your own MyFunction interface with a different method name of course

Audience Question: 
Q: How does this method take 2 params and also returns another param ? Address address = personToAddressFunction.apply(new Person("Sang",
				new Address("Korea")));[santhi peyathevar] [santhip@gmail.com] [Q: 3:29 PM] [A: 3:30 PM] 
A: Forwarind..

Q: Got it :)[santhi peyathevar] [santhip@gmail.com] [Q: 3:31 PM] 

Audience Question: 
Q: how did the local var became final ?[santhi peyathevar] [santhip@gmail.com] [Q: 3:35 PM] [A: 3:35 PM] 
A: That is the way it works.  That is why it is called effectively final since it becomes final even without "final" access modifier

Q: What are all available methods in stream like filter, sum etc...[Mahesh Voora] [mahesh.voora@yahoo.com] [Q: 3:47 PM] 

Q: y[santhi peyathevar] [santhip@gmail.com] [Q: 3:53 PM] 

Q: yes[joel kass] [hjoelkass@gmail.com] [Q: 3:53 PM] 

Audience Question: 
Q: because it is used in Lambda - it became final ?[santhi peyathevar] [santhip@gmail.com] [Q: 3:37 PM] [A: 3:58 PM] 
A: correct

Q: sure[joel kass] [hjoelkass@gmail.com] [Q: 4:14 PM] 

Q: very good presentation[joel kass] [hjoelkass@gmail.com] [Q: 4:28 PM] 

Audience Question: 
Q: support@jpassion.com ?[santhi peyathevar] [santhip@gmail.com] [Q: 4:28 PM] [A: 4:28 PM] 
A: support@jpassion.com

Audience Question: 
Q: Just an editorial I noticed, The LAB-1621 (streams) has the wrong titles on the Lab Exercises. [Petros Pissias] [petros.pissias@esa.int] [Q: 4:26 PM] [A: 4:29 PM] 
A: I will fix it

Audience Question: 
Q: Can we be notified when the lab documentation is updated to show parallelism?[Robert Mapes] [itsrobertm@gmail.com] [Q: 4:28 PM] [A: 4:29 PM] 
A: I will do the update over the weekend

Audience Question: 
Q: Thanks for the very nice traininig and good night from Germany. [Petros Pissias] [petros.pissias@esa.int] [Q: 4:28 PM] [A: 4:29 PM] 
A: thanks

Q: Thank you very much ![santhi peyathevar] [santhip@gmail.com] [Q: 4:29 PM] 

Q: Thanks![gokul kale] [gokulskale@gmail.com] [Q: 4:29 PM] 

Q: ok will do.[joel kass] [hjoelkass@gmail.com] [Q: 4:30 PM] 

Audience Question: 
Q: i think that people from school would really benefit from this actually...if you want i can pass it on.[joel kass] [hjoelkass@gmail.com] [Q: 4:29 PM] [A: 4:30 PM] 
A: thanks

Q: i am a graduate student[joel kass] [hjoelkass@gmail.com] [Q: 4:30 PM] 

Q: ok[joel kass] [hjoelkass@gmail.com] [Q: 4:30 PM] 

Q: java 8[Serghei Radov] [sradov@lohika.com] [Q: 4:30 PM] 

Audience Question: 
Q: you have opened it for me, I was to busy to review the new book ) Thank you. [Serghei Radov] [sradov@lohika.com] [Q: 4:30 PM] [A: 4:30 PM] 
A: thanks

Q: thanks and have a good night! [joel kass] [hjoelkass@gmail.com] [Q: 4:30 PM] 

Q: sure[joel kass] [hjoelkass@gmail.com] [Q: 4:31 PM] 

Audience Question: 
Q: i will let ppl from school know[joel kass] [hjoelkass@gmail.com] [Q: 4:31 PM] [A: 4:31 PM] 
A: thanks much

Q: thank you for the great job. 
[Serghei Radov] [sradov@lohika.com] [Q: 4:31 PM] 

Q: Thank you![Tianfu Mao] [tianfu.mao@allstate.com] [Q: 4:31 PM] 

Q: Thanks Sang. I appreciate it. Have a good weekend.[Robert Mapes] [itsrobertm@gmail.com] [Q: 4:31 PM] 

Q: ?[Penny Ho] [pennyho712@gmail.com] [Q: 4:31 PM] 

Audience Question: 
Q: sept 7[Penny Ho] [pennyho712@gmail.com] [Q: 4:31 PM] [A: 4:31 PM] 
A: see jpassion.com/codecamps for scheduke

Q: great.[Penny Ho] [pennyho712@gmail.com] [Q: 4:32 PM] 

Audience Question: 
Q: Sang, Thank you very much for teaching Java 8 key features in a day !

I always count on JPassion for catching up or starting over :)[santhi peyathevar] [santhip@gmail.com] [Q: 4:31 PM] [A: 4:32 PM] 
A: Good to hear

Q: thank you.[Penny Ho] [pennyho712@gmail.com] [Q: 4:32 PM]