logo

Crowdly

Browser

Add to Chrome

SEW8b 4xHIT Spring Boot

Looking for SEW8b 4xHIT Spring Boot test answers and solutions? Browse our comprehensive collection of verified answers for SEW8b 4xHIT Spring Boot at elearning.tgm.ac.at.

Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!

Kreuzen Sie an, welche Objekt-Initialisierungen sich fehlerfrei kompilieren lassen: [EK]

type Person = { id?: number; name: string };

StrictNullChecks sind aktiviert, der TS-Kompiler unterscheidet also zwischen null und undefined.

"compilerOptions": { "strictNullChecks": true }
0%
0%
0%
0%
0%
0%
View this question

Betrachten Sie folgendes Beispiel. Es besteht aus zwei ref Variablen und je einer computed Property, Method und Watcher auf jeder der beiden Variablen. Kreuzen Sie an, was aufgerufen wird, wenn über die Eingabe eines Zeichens im Input-Feld

ein Re-Render getriggered wird:

<script setup lang="ts"

>

import {computed, ref, watch} from "vue"

;

const count = ref<number>(0

);

const countComputed = computed(() => { console.log("countComputed"); return count.value + 1

});

function countMethod() { console.log("countMethod"); return count.value - 1

; }

watch(count, () => { console.log("countWatch"

); })

const name = ref<string>("Max"

);

const nameComputed = computed(() => { console.log("nameComputed"); return name.value.toUpperCase

(); });

function nameMethod() { console.log("nameMethod"); return name.value.toLowerCase

(); }

watch(name, () => { console.log("nameWatch"

); })

</

script

>

<

template

>

<

h1>Count</h1

>

<

p>{{ count }} <button @click="count++">Increment</button></p

>

<

p>{{ countComputed }}</p

>

<

p>{{ countMethod() }}</p

>

<

h1>Name</h1

>

<

p><input v-model="name"></p

>

<

p>{{ nameComputed }}</p

>

<

p>{{ nameMethod() }}</p

>

</

template>

0%
0%
0%
0%
0%
0%
View this question
Kreuzen Sie richtige Aussagen über die Durchführung von API-Calls an:
0%
0%
0%
0%
0%
0%
View this question
Wählen Sie aus, welche Aussage auf das reaktive Primitiv ref, reactive, ref und reactive (Beide) oder weder ref noch reactive (Keins von Beiden) zutrifft:
View this question
Ordne folgende KI-Beschreibungen ihrer Technologie zu: [EK]
View this question
Welche der folgenden Aussagen über Optional in Java sind korrekt? [EK]
0%
0%
0%
View this question

Was wird ausgegeben, wenn man die Anwendung startet: [EK]

@Scope("singleton"

)

@Component

public class GreeterSingleton

{

private static int lastId = 0

;

private final int id = ++lastId

;

@Override

public String toString

() {

return "GreeterSingleton " + id

;

}

}

@Component

public class ProfileTester implements CommandLineRunner

{

@Autowired

private GreeterSingleton greeterSingleton

;

@Autowired

private ApplicationContext context

;

@Override

public void run(String... args) throws Exception

{

System.out.println(greeterSingleton + "\n" + context.getBean(GreeterSingleton.class

));

}

}

View this question
Die Lombok Annotation @Data ist eine Sammelannotation für: [EK]
0%
0%
0%
0%
0%
0%
0%
0%
View this question
Kreuze an, Abhängigkeiten welchen Geltungsbereichs (Scope) bereits beim Startup der Spring Boot-Anwendung instanziiert werden: [EK]
View this question

Was wird ausgegeben, wenn man die Anwendung startet: [EK]

@Scope("prototype"

)

@Component

public class GreeterPrototype

{

private static int lastId = 0

;

private final int id = ++lastId

;

@Override

public String toString

() {

return "GreeterPrototype " + id

;

}

}

@Component

public class ProfileTester implements CommandLineRunner

{

@Autowired

private GreeterPrototype greeterPrototype

;

@Autowired

private ApplicationContext context

;

@Override

public void run(String... args) throws Exception

{

System.out.println(greeterPrototype + "\n" + context.getBean(GreeterPrototype.class

));

}

}

0%
0%
0%
View this question

Want instant access to all verified answers on elearning.tgm.ac.at?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome