logo

Crowdly

Browser

Add to Chrome

Course 5716

Looking for Course 5716 test answers and solutions? Browse our comprehensive collection of verified answers for Course 5716 at moodle.hftm.ch.

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

Mit welchem Schlüsselwort werden neue Objekte angelegt?

View this question

Welche Ausgabe erzeugt der folgende Code?

public class Aufgabe8 {

public static void main(String[] args) {

for (int i = 0; i < 10; i++) {

if (i % 2 == 0)

System.out.print('x');

else

System.out.print(i);

}

}

}

View this question

Welche Ausgabe erzeugt der folgende Code?

public class Aufgabe4 {

public static void main(String[] args) {

byte b = 127;

System.out.println(++b);

}

}

View this question

Welche Ausgabe erzeugt der folgende Code?

public class Aufgabe6 {

static int i = 5;

static int j = 6;

public static void main(String[] args) {

int i = 3;

int j = 4;

int k = addiere(i,j);

System.out.println(k);

int l = addiere2(i,j);

System.out.println(l);

}

private static int addiere(int i, int j) {

return i + j;

}

private static int addiere2(int k, int l) {

return i + j;

}

}

View this question

Welche Ausgabe erzeugt der folgende Code?

public class Aufgabe3 {

public static void main(String[] args) {

int dividend = 4;

int divisor = dividend - 4;

System.out.println(dividend / divisor);

}

}

View this question

Welche Ausgabe wird mit dem folgenden Code erzeugt, wenn in der Konsole "Java" (ohne Anführungszeichen) eingegeben wird?

public class Aufgabe11 {

static final Scanner scanner = new Scanner(System.in);

public static void main(String[] args) {

System.out.print("Eingabe: ");

String eingabe = scanner.next();

for (int i = 0; i < eingabe.length(); i++) {

System.out.println(eingabe.charAt(i));

}

}

}

View this question

Want instant access to all verified answers on moodle.hftm.ch?

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

Browser

Add to Chrome