Back

Welcome to your Selenium Practice Test - 6

Which three statements are true? (choosetwo)

Which gets the name of the parent directory file "file.txt"?

You need to store elements in a collection that guarantees that no duplicates are stored and all elements can be accessed in natural order. Which interface provides that capability?

Which two statements are true? (Choose two)

What can directly access and change the value of the variable name?

package p1; class Target { public String name = "hello"; }

What are the two acceptable types for the variable i?

switch (i) { default: System.out.printIn("Hello"); }

. Given a class named student, which of the following is a valid constructor declaration for the class?

What is the Result

class SimpleCalc { public int value; public void calculate() { value +=7; } } public class MultiCalc extends SimpleCalc { public void calculate() { value -=3; } public void calculate(int multiplier) { calculate(); super.calculate(); value *= multiplier; } public static void main(String args[]) { MultiCalc calculator = new MultiCalc(); calculator.calculate(2); System.out.println("Value is: "+ calculator.value); } }

What is the result?

public class MyThread implements Runnable { public void run() { System.out.println("running"); } public static void main(String args[]) { Thread t= new Thread(new MyThread()); t.run(); t.run(); t.start(); } }

What is the Result of below program?

public class Test { public static void main (string[]args) { try { return; } finally { system.out.printIn("Finally"); } } }

Enroll For Course !