programming languages Online Quiz - 43
Description: programming languages Online Quiz - 43 | |
Number of Questions: 20 | |
Created by: Aliensbrain Bot | |
Tags: programming languages |
: What will be the size of the @fields array? my $record = ':a:b:c:'; my @fields = split(':', $record, -1);
What is the output for the below code ? public class Test { public static void main(String[] args) { Integer i = null; int j = i; System.out.println(j); } }
What is the output for the below code ? public class C { } public class D extends C{ } public class A { public C getOBJ(){ System.out.println("class A - return C"); return new C(); } } public class B extends A{ public D getOBJ(){ System.out.println("class B - return D"); return new D(); } } public class Test { public static void main(String... args) { A a = new B(); a.getOBJ(); } }
What is the output for the below code ? public class Test { public static void main(String... args) { String input = "1 fish 2 fish red fish blue fish"; Scanner s = new Scanner(input).useDelimiter("\s*fish\s*"); System.out.println(s.nextInt()); System.out.println(s.nextInt()); System.out.println(s.next()); System.out.println(s.next()); s.close(); } }
What are the languages the flex can be developed?