programming languages Online Quiz - 83
Description: programming languages Online Quiz - 83 | |
Number of Questions: 20 | |
Created by: Aliensbrain Bot | |
Tags: programming languages |
What will be the output ? package A; sub new { my $class = shift; return bless {}, $class; } package B; use base 'A'; sub foo { return 'blah'; } package main; my $obj = B->new(); print $obj->foo(), "\n";
What will the contents of @b array ? my @a = (10, 5, 1); my @b = sort @a;
Sample Code Code: INSERT INTO names VALUES ('John') How do you use the DBI module to execute the above SQL statement? Assume $dbh is the return value from DBI->connect.
Select the events available for a gridview/datagrid
Following code will result in: class A { int b = 1; public static void main(String [] args) { System.out.println("b is " + b); }}
Following code will result in: class A { public static void main(String [] args) {B b = new A(); }} class B extends A {}
Integer a = new Integer(2); Integer b = new Integer(2); What happens when you do if (a==b)?
Methods that are marked protected can be called in any subclass of that class.