πŸ“Š JAVA
Q. What restriction is placed on local variables used inside a lambda?
  • (A) They must be static
  • (B) They must be public
  • (C) They must be final or effectively final
  • (D) They must be declared inside the lambda
πŸ’¬ Discuss
βœ… Correct Answer: (C) They must be final or effectively final

Explanation: Local variables used inside lambdas must be final or effectively final.

Explanation by: Mr. Dubey
Local variables used inside lambdas must be final or effectively final.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
46
Total Visits
πŸ“½οΈ
8 mo ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
82%
Success Rate