New game
Download
Get Academic Plan
Share game
Integrate it into your platform

You can integrate the game into an LMS compatible with LTI 1.1 or LTI 1.3 such as Canvas, Moodle, or Blackboard. This way, the scores will be automatically saved into the platform’s gradebook.
Download
You have exceeded the maximum number of games you can integrate into Google Classroom with your current Plan.

To integrate as many games as you want in Google Classroom, you need an Academic Plan or a Commercial Plan.

You have exceeded the maximum number of games you can integrate into Microsoft Teams with your current Plan.

To integrate as many games as you want in Microsoft Teams, you need an Academic Plan or a Commercial Plan.

Downloading games is an exclusive feature for users with an Academic Plan or a Commercial Plan.

Get your Academic Plan or your Commercial Plan now and start integrating your games into your LMS, website or blog.

If you wish, you can download a demo game here and test its integration:

Spring_Essentials_Day_2

Froggy Jumps

Played 18

About this activity

Spring Core, Spring Test, Spring ORM

Created by

India

Download the paper version to play

Make your own free game from our game creator
Compete against your friends to see who gets the best score in this game

Top Games

%
Anonymous
Anonymous
%
%
%
You have exceeded the maximum number of games you can print with your current Plan.

To print as many games as you want, you need an Academic Plan or a Commercial Plan.

Print your game
Spring_Essentials_Day_2
 

Froggy Jumps

Spring_Essentials_Day_2Online version

Spring Core, Spring Test, Spring ORM

by Birendra Singh
1

@Named class Debit implements Payment { String pay() { return "Debit" } } @Named class Credit implements Payment { String pay() {return "Credit"; } } @Named class Customer { @Autowired @Qualifier("creditCard") private Payment payment;}

2

@Configuration public class AppConfig { @Bean @Profile("dev") public DataSource devDB() { return new HikariDataSource(); } @Bean @Profile("prod") public DataSource prodDB() {return new DataSource(); } } spring.profiles.active=dev

3

What happens if no active profile is specified?

4

@Component("emp") class Employee { public String getName() { return "Raj";} } @Component class TestBean { @Value("#{emp.name}") private String name; public void show() {System.out.println(name); } }What is the output?

5

Which expression accesses bean property?

6

@Component("calc") class Calculator { public int square(int n) { return n*n; } } @Value("#{calc.square(5)}") private int result; What is the output of the program?

7

@Component class Demo { @Value("#{{'Java','Spring','Hibernate'}}") private List courses; public void print() { System.out.println(courses.size()); } }What will be the output?

8

Why is PropertySourcesPlaceholderConfigurer used?

9

@Configuration @PropertySource("classpath:db.properties") class Config { @Value("${db.name}") private String db; }If property file contains: db.name=mysql

10

Which annotation loads properties file?

11

Correct lifecycle order?

12

Which interface provides initialization callback?

13

Which method is called automatically before bean destruction?

14

Which annotation is equivalent to Spring’s @Component?

15

@Resource injects dependency primarily by?

16

@Component @Lazy class Demo { public Demo() { System.out.println("Bean Created"); } }What will be the output of the above code?

17

Which scope commonly uses lazy loading?

18

What is the purpose of @DirtiesContext annotation?

19

Which mode reloads context after each test method?

20

Which enum belongs to @DirtiesContext?

21

Which exception advantage is provided by Spring ORM?

22

Which is NOT a feature of Spring ORM?

23

@Component("mathBean") class MathBean { public int cube(int n) { return n*n*n; } } @Component class Demo { @Value("#{mathBean.cube(3)}") int value; public void print()System.out.println(value); } } What will be output?

24

@Component("bike") class Bike {} @Component class Rider { @Inject @Named("bike") private Bike bike; }What happens?

25

@Component @Lazy class Engine { public Engine() { System.out.println("Engine Created"); } }AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext(Config.class); System.out.println("Container Started");

Are you sure you want to leave the page?

If you leave, you will lose the game in progress.