82051. public class Myfile { public static void main (String[] args) { String biz = args[1]; String baz = args[2]; String rip = args[3]; System.out.println("Arg is " + rip); } } Select how you would start the program to cause it to print: Arg is 2
82052. Titanium di Oxide is used in intensifying screen as
82053. Trace amount of gold are sometimes added to silver halide crystals of X-rays films to improve their
82054. The technique based on Clesensky’s rule of isometry is
82055. Which three are legal array declarations? int [] myScores []; char [] myChars; int [6] myScores; Dog myDogs []; Dog myDogs [7];
82056. public interface Foo { int k = 4; / Line 3 / } Which three piece of codes are equivalent to line 3? final int k = 4; public int k = 4; static int k = 4; abstract int k = 4; volatile int k = 4; protected int k = 4;
82057. Which one of the following will declare an array and initialize it with five numbers?
82058. Which three are valid declarations of a char? char c1 = 064770; char c2 = 'face'; char c3 = 0xbeef; char c4 = \u0022; char c5 = '\iface'; char c6 = '\uface';
82059. Which is the valid declarations within an interface definition?
82060. Which one is a valid declaration of a boolean?
82061. Which three are valid declarations of a float? float f1 = -343; float f2 = 3.14; float f3 = 0x12345; float f4 = 42e7; float f5 = 2001.0D; float f6 = 2.81F;
82062. Which is a valid declarations of a String?
82063. What is the numerical range of a char?
82064. What will be the output of the program? public class CommandArgsThree { public static void main(String [] args) { String [][] argCopy = new String[2][2]; int x; argCopy[0] = args; x = argCopy[0].length; for (int y = 0; y < x; y++) { System.out.print(" " + argCopy[0][y]); } } } and the command-line invocation is > java CommandArgsThree 1 2 3
82065. What will be the output of the program? public class CommandArgs { public static void main(String [] args) { String s1 = args[1]; String s2 = args[2]; String s3 = args[3]; String s4 = args[4]; System.out.print(" args[2] = " + s2); } } and the command-line invocation is > java CommandArgs 1 2 3 4
82066. public class F0091 { public void main( String[] args ) { System.out.println( "Hello" + args[0] ); } } What will be the output of the program, if this code is executed with the command line: > java F0091 world
82067. What will be the output of the program? public class TestDogs { public static void main(String [] args) { Dog [][] theDogs = new Dog[3][]; System.out.println(theDogs[2][0].toString()); } } class Dog { }
82068. What will be the output of the program ? public class Test { public static void main(String [] args) { signed int x = 10; for (int y=0; y<5; y++, x--) System.out.print(x + ", "); } }
82069. What will be the output of the program? public class CommandArgsTwo { public static void main(String [] argh) { int x; x = argh.length; for (int y = 1; y <= x; y++) { System.out.print(" " + argh[y]); } } } and the command-line invocation is > java CommandArgsTwo 1 2 3
82070. In the given program, how many lines of output will be produced? public class Test { public static void main(String [] args) { int [] [] [] x = new int [3] [] []; int i, j; x[0] = new int[4][]; x[1] = new int[2][]; x[2] = new int[5][]; for (i = 0; i < x.length; i++) { for (j = 0; j < x[i].length; j++) { x[i][j] = new int [i + j + 1]; System.out.println("size = " + x[i][j].length); } } } }
82071. What will be the output of the program? public class X { public static void main(String [] args) { String names [] = new String[5]; for (int x=0; x < args.length; x++) names[x] = args[x]; System.out.println(names[2]); } } and the command line invocation is > java X a b
82072. Which four options describe the correct default values for array elements of the types indicated? int -> 0 String -> "null" Dog -> null char -> '\u0000' float -> 0.0f boolean -> true
82073. Which one of these lists contains only Java programming language keywords?
82074. Which will legally declare, construct, and initialize an array?
82075. Which is a reserved word in the Java programming language?
82076. Which is a valid keyword in java?
82077. In the X-ray tube,X-rays originate from:
82078. The main cause of foreshortening of the bisecting angle technique
82079. The embossed dot of the film packet should always be placed
82080. The radiograph that shows the crowns of rubber & lower teeth is called
82081. Placing the film in the fixer first result in
82082. Which interface provides the capability to store objects using a key-value pair?
82083. Which collection class allows you to associate its elements with key values, and allows you to retrieve objects in FIFO (first-in, first-out) sequence?
82084. Which collection class allows you to access its elements by associating a key with an element's value, and provides synchronization?
82085. Which is valid declaration of a float?
82086. / Missing Statement ? / public class foo { public static void main(String[]args)throws Exception { java.io.PrintWriter out = new java.io.PrintWriter(); new java.io.OutputStreamWriter(System.out,true); out.println("Hello"); } } What line of code should replace the missing statement to make this program compile?
82087. What is the numerical range of char?
82088. Which of the following are Java reserved words? run import default implement
82089. What will be the output of the program? public class Test { public static void main (String[] args) { String foo = args[1]; String bar = args[2]; String baz = args[3]; System.out.println("baz = " + baz); / Line 8 / } } And the command line invocation: > java Test red green blue
82090. What will be the output of the program? public class Test { public static void main (String args[]) { String str = NULL; System.out.println(str); } }
82091. What will be the output of the program? package foo; import java.util.Vector; / Line 2 / private class MyVector extends Vector { int i = 1; / Line 5 / public MyVector() { i = 2; } } public class MyNewVector extends MyVector { public MyNewVector () { i = 4; / Line 15 / } public static void main (String args []) { MyVector v = new MyNewVector(); / Line 19 / } }
82092. What will be the output of the program? public class Test { private static int[] x; public static void main(String[] args) { System.out.println(x[0]); } }
82093. What will be the output of the program? import java.util.; class I { public static void main (String[] args) { Object i = new ArrayList().iterator(); System.out.print((i instanceof List)+","); System.out.print((i instanceof Iterator)+","); System.out.print(i instanceof ListIterator); } }
82094. What will be the output of the program? public class Test { private static float[] f = new float[2]; public static void main (String[] args) { System.out.println("f[0] = " + f[0]); } }
82095. What will be the output of the program? import java.util.; class H { public static void main (String[] args) { Object x = new Vector().elements(); System.out.print((x instanceof Enumeration)+","); System.out.print((x instanceof Iterator)+","); System.out.print(x instanceof ListIterator); } }
82096. What will be the output of the program? TreeSet map = new TreeSet(); map.add("one"); map.add("two"); map.add("three"); map.add("four"); map.add("one"); Iterator it = map.iterator(); while (it.hasNext() ) { System.out.print( it.next() + " " ); }
82097. What will be the output of the program? public static void main(String[] args) { Object obj = new Object() { public int hashCode() { return 42; } }; System.out.println(obj.hashCode()); }
82098. class Test1 { public int value; public int hashCode() { return 42; } } class Test2 { public int value; public int hashcode() { return (int)(value^5); } } which statement is true?
82099. Which statement is true for the class java.util.HashSet?
82100. Which of the following statements about the hashcode() method are incorrect? The value returned by hashcode() is used in some collection classes to help locate objects. The hashcode() method is required to return a positive int value. The hashcode() method in the String class is the one inherited from Object. Two new empty String objects will produce identical hashcodes.
Terms And Service:We do not guarantee the accuracy of available data ..We Provide Information On Public Data.. Please consult an expert before using this data for commercial or personal use