INTRODUCTION TO JAVA Question With Answer 2018
INTRODUCTION TO JAVA Question With Answer 2018
PROGRAMMING LANGUAGE
AKU QUESTIONS 2018
MCQ QUESTIONS:
(i) compiled
(ii) interpreted
(iii) hybrid
(iv) script
class Base{
public static void main(String|] args){
System.out.println("Hello’);
}
}
public class Test extends Base}
(i) boolean b = 0;
t.increment(a);
System.out.printin(a{a.length- 1));
void increment(intl]i}{
ifidength - 1]++;
}
long longArrf];
int intArr[] = (7, 8, 9};
longArr = intArt;
(i) Yes
(ii) No
interface A[
void aMethod();
t.aMethod();
}
}
(i} The code will not compile
(i) Runtime exception
(ii} Compiles and runs printing out
"hello"
SUBJECTIVE QUESTIONS:
(b) What does a dynamic Billboard Applet do? What are the
three main classes that the applet contain?
The accessor and mutator methods for all four data fields.
1) Interface
2) String builder class
3) Object passing
4) Types of JDBC drivers
5) Listener method
6) Java exceptions
7) Polymorphism