Search:

Type: Posts; User: soumya186

Search: Search took 0.18 seconds.

  1. Replies
    1
    Views
    1,154

    brain bench question

    public class Test {
    public static void main(String[] args) {
    if (args[0].equals("b") && checkFoo(args)) {
    System.out.println("if evaluated to true.");
    }

    System.out.println("x");
    }
    private...
  2. Replies
    1
    Views
    868

    brain bench question

    Sample Code
    int a = 3; int b = 0;
    switch (a) {
    case 1: b = a + 2;
    case 2: b = a + 3;
    case 3: b = a + 4;
    case 4: b = a + 5;
    case 5: b = a + 6;
    default:
    b = a * 2;
  3. Replies
    1
    Views
    909

    brain bench question

    What is the command used to archive Foo.class and Bar.class into a jar file?
    Choice 1 zip myclasses.jar Foo.class Bar.class
    Choice 2 jar cvf myclasses.jar Foo.class Bar.class
    Choice 3 gzip...
  4. Replies
    1
    Views
    1,220

    brain bench question

    java com.brainbench.TestCommandLine -p Parameter1 Parameter2 Parameter3 Parameter4
    If the user enters the command line shown above, how many elements are contained in the array which is passed to...
Results 1 to 4 of 4