Extended Reastart ( XRST ) to be used with what type of checkpint?
Basic Checkpoint
Intermediate Checkpint
Symbolic Checkpint
Para-symbolic checkpint
Given: 10. package com.sun.scjp; 11. public class Geodetics { 12. public static final double DIAMETER = 12756.32; // kilometers 13. } Which two correctly access the DIAMETER member of the Geodetics class? (Choose two.)
import com.sun.scjp.Geodetics;
import static com.sun.scjp.Geodetics;
import static com.sun.scjp.Geodetics.*;
package com.sun.scjp;
Given: 10. public class Bar { 11. static void foo( int... x ) { 12. // insert code here 13. } 14. } Which two code fragments, inserted independently at line 12, will allow the class to compile? (Choose two.)
foreach( x ) System.out.println(z);
for( int z : x ) System.out.println(z);
while( x.hasNext() ) System.out.println( x.next() );
for( int i=0; i< x.length; i++ ) System.out.println(x[i]);
Given: 1. public class Plant { 2. private String name; 3. public Plant(String name) { this.name = name; } 4. public String getName() { return name; } 5. } 1. public class Tree extends Plant { 2. public void growFruit() { } 3. public void dropLeaves() { } 4. } Which statement is true?
The code will compile without changes.
The code will compile if public Tree() { Plant(); } is added to the Tree class.
The code will compile if public Plant() { Tree(); } is added to the Plant class.
The code will compile if public Plant() { this("fern"); } is added to the Plant class
The code will compile if public Plant() { Plant("fern"); } is added to the Plant class.
In a DC program which PCB should be first entry at PCB mask.
Alternate PCB
IO PCB
Database PCB
Any one
Given: 1. public class Threads2 implements Runnable { 2. 3. public void run() { 4. System.out.println("run."); 5. throw new RuntimeException("Problem"); 6. } 7. public static void main(String[] args) { 8. Thread t = new Thread(new Threads2()); 9. t.start(); 10. System.out.println("End of method."); 11. } 12. } Which two can be results? (Choose two.)
java.lang.RuntimeException: Problem
run.java.lang.RuntimeException: Problem
End of method.java.lang.RuntimeException: Problem
End of method.run.java.lang.RuntimeException: Problem
run.java.lang.RuntimeException: ProblemEnd of method.
Attribute parametr MOD signifies-
High intensity
Modified Data Tag
Protected
Numeric
BTS stands for -
Basic Test Screen
Batch Test Screen
Batch Terminal Simulator
Batch Terminal Selection
Given: 1. public class TestSeven extends Thread { 2. private static int x; 3. public synchronized void doThings() { 4. int current = x; 5. current++; 6. x = current; 7. } 8. public void run() { 9. doThings(); 10. } 11.} Which statement is true?
Compilation fails.
An exception is thrown at runtime
Synchronizing the run() method would make the class thread-safe.
The data in variable "x" are protected from concurrent access problems.
Declaring the doThings() method as static would make the class thread-safe.
Wrapping the statements within doThings() in a synchronized(new Object()) { } block would make the classthread-safe.
A GU call does not establish parentage at the segment being retrieved
True
False