What are anonymous methods and lambda expression?



What are anonymous methods and lambda expression?..

Answer / Kunal Dwivedi

Anonymous methods are a way to define methods without giving them a name. They were introduced in older versions of Java before lambda expressions. Lambda expressions, however, provide a more concise syntax for defining anonymous functions.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Java Related AllOther Interview Questions

What are the advantages of java sockets?

1 Answers  


Explain suspend() method under thread class>

1 Answers  


In hibernate what is the difference between the Session and SessionFactory?

1 Answers   Cap Gemini,


Does jvm maintain a cache by itself? Does the jvm allocate objects in heap? Is this the os heap or the heap maintained by the jvm? Why

1 Answers  


What's a code group? : java security

1 Answers  


What is the difference between map and flatmap in java?

1 Answers  


what are the types of constructer explain with example

3 Answers  


Does netbeans need jdk?

1 Answers  


what are the different phases in delivering the project during development and maintenance?

1 Answers   CTS,


What is transactional in java?

1 Answers  


What is a container in java?

1 Answers  


What is cache in java?

1 Answers  


Categories