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

Week Assign BCS403

The document is an important question bank for the Even Semester 2024-25 at Galgotias College of Engineering & Technology, covering key concepts in Java and Spring. It includes questions on Java architecture, exception handling, polymorphism, collection frameworks, and Spring's Dependency Injection and REST controllers. Each section is aligned with specific course outcomes (CO1-CO5) and provides examples and programming tasks for practical understanding.

Uploaded by

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

Week Assign BCS403

The document is an important question bank for the Even Semester 2024-25 at Galgotias College of Engineering & Technology, covering key concepts in Java and Spring. It includes questions on Java architecture, exception handling, polymorphism, collection frameworks, and Spring's Dependency Injection and REST controllers. Each section is aligned with specific course outcomes (CO1-CO5) and provides examples and programming tasks for practical understanding.

Uploaded by

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

Galgotias College of Engineering & Technology

Knowledge Park-II, Greater Noida, Uttar Pradesh, India


Even Semester, 2024-25

Important Question Bank

CO 1:

1. Describe JVM and byte code in Java Architecture. (CO1, 2023-24)

2. Define the concept of classes and object in Java with a suitable example. (CO1, 2023-24)

3. Explain Interfaces in Java with suitable example. (CO1, 2023-24)

4. Illustrate polymorphism and its types in Java. Differentiate between run-time and compile-
time polymorphism. Write super class Shape with method displayArea() and sub class
Rectangle. Demonstrate method overriding with this example. (CO1, 2023-24)

CO 2:

1. Describe all the keywords used for exception handling in Java. (CO2, 2023-24)

2. Describe various states achieved by the thread in its life cycle. (CO2, 2023-24)

3. Differentiate between checked and unchecked exceptions in Java. Write a Java program to
demonstrate Arithmetic Exception handlings. (CO2, 2023-24)

4. Differentiate between with suitable examples: (CO2, 2023-24)

1. Character streams and Byte Streams

2. wait() and notify()

CO 3:

1. Explain the concept of Sealed classes in Java with suitable example. (CO3, 2023-24)

2. Explain the functional interfaces in Java. Describe lambda expressions with the help of
functional interfaces. (CO3, 2023-24)

3. Compare and contrast switch-case statement with switch-expression in Java. Explain with
suitable example. (CO3, 2023-24)

CO 4:

1. Write a Java program to create an ArrayList with five items and display all the elements using
forEach method. (CO4, 2023-24)
2. Explain Java stream API and its applications. Describe Intermediate and terminal operations
with suitable example. Write a program to print sum of all even numbers form an ArrayList
containing all integers from 1 to 10. (CO4, 2023-24)

3. Describe Linked List in Java collection framework. With suitable example describe any five
methods available in Linked Lists. (CO4, 2023-24)

4. Describe HashMap in Java collection framework. With suitable example describe any five
methods available in HashMaps. (CO4, 2023-24)

CO 5:

1. Explain the difference between Dependency Injection (DI) and Inversion of Control (IoC) in
Spring. (CO5, 2023-24)

2. Describe following (CO5, 2023-24)

1. Spring container

2. Spring bean life cycle

3. Explain the concept of a REST controller in the context of building RESTful web services.
Provide an example of a REST controller implementation using Spring Boot.

4. Explain the concept of Dependency Injection and IOC in Spring. How does it promote loose
coupling in applications? Provide an example using constructor injection.

You might also like