0% found this document useful (0 votes)
2 views2 pages

OOPS Assignment - III

The document outlines an assignment for the OOPs with Java course at ITS Engineering College, covering various advanced Java concepts. Topics include functional interfaces, lambda expressions, method references, the Stream API, default and static methods in interfaces, Base64 encoding, and new features like switch expressions and records. Each question prompts detailed explanations and examples related to the respective Java features.

Uploaded by

mdkhan03400340
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views2 pages

OOPS Assignment - III

The document outlines an assignment for the OOPs with Java course at ITS Engineering College, covering various advanced Java concepts. Topics include functional interfaces, lambda expressions, method references, the Stream API, default and static methods in interfaces, Base64 encoding, and new features like switch expressions and records. Each question prompts detailed explanations and examples related to the respective Java features.

Uploaded by

mdkhan03400340
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

ITS Engineering College, Grater Noida

Subject Name: OOPs with Java


Subject Code: BCS-403
Assignment-III
1. What are functional interfaces in Java? Give some predefined
functional interfaces.
2. Explain lambda expressions in Java and provide examples of their
usage.
3. How do functional interfaces in Java relate to lambda expressions?
4. Explain method references in Java with its types.
5. How do method references simplify code in Java? Provide
examples.
6. Describe stream API. Write down the features of stream API.
7. Discuss the purpose and usage of the Stream API in Java.
8. What are default methods in Java interfaces? Give key features of
default methods.
9. How do default methods enable backward compatibility?
10. Explain the concept of static methods in Java interfaces. What are
the features of static methods?
11. Explain Base64 encode and decode in detail.
12. Que 3.12. How can you perform Base64 encoding and decoding in
Java?
13. Describe the for Each method in Java and its significance in
collections processing.
14. What is the try-with-resources statement in Java? How does it
simplify resource management?
15. Explain type annotations and their role in Java.
16. What are repeating annotations, and how are they used in Java?
17. Discuss the Java Module System and its advantages.
18. What is diamond syntax in Java?
19. What do you mean by inner anonymous classes in Java?
20. How does the diamond syntax work with inner anonymous classes
in Java ?
21. What is local variable type inference, and how does it improve
code readability?
22. Explain switch expressions in Java and how they differ from
traditional switch statements.
23. What is the 'yield' keyword in Java? Provide examples of its usage.
24. Discuss text blocks in Java and their benefits in string
manipulation.
25. What are records in Java, and how do they simplify the creation of
immutable data?
26. Explain sealed classes in Java and their role in controlling
inheritance hierarchies.

You might also like