logo

Crowdly

Browser

Add to Chrome

Questions Bank (1525506 total)

Leida osalise joonkoormusega lihttala  parempoolse toe vertikaalne reaktsioon kui L = 9.8 m ja koormus q = 19 kN/m mõjub tala vasakpoolses otsas pikkusel 1.3 m. Vastus anda kahe komakohaga, koos ühikuga ning koma asemel kasutada punkti.

View this question

What will be the

output of the following code snippet?

public class

MyClass {

    static int value = 10;

      public void printValue() {

        System.out.println(value);

    }

        public static void main(String[] args)

{

        MyClass obj = new MyClass();

        obj.printValue();

    }

}

0%
0%
0%
0%
View this question

What will be the output of the following code snippet?

int x = 7;

int y = x > 5 ? 10 : 5;

System.out.println(y);

0%
0%
0%
0%
View this question
What is the purpose of the "new" keyword in object-oriented programming?
100%
0%
0%
0%
View this question

What is the output of the following code

snippet?

int[ ] numbers = {3, 5, 2, 1, 4};

Arrays.sort(numbers);

System.out.println(numbers[numbers.length -

1]);

0%
0%
0%
0%
View this question
Which of the following statements about the finally block in exception handling is true?
100%
0%
0%
0%
View this question

What

is the output of the following code snippet?

ArrayList<String> colors = new

ArrayList<>();

colors.add("Red");

colors.add("Blue");

System.out.println(colors.indexOf("Green"));

0%
0%
0%
0%
View this question
Which method is used to create a new thread for long-running tasks in Java?
0%
0%
100%
0%
View this question

What is the output of the following code snippet?

int x = 5;

x += ++x + x++;

System.out.println(x);

100%
0%
0%
0%
View this question
In Java, can an abstract class be instantiated?
0%
0%
0%
100%
View this question