-
-
Which of the following are primitive types?
A) byteB) StringC) integerD) float
-
Which of the following features are common to both Java & C++? (Select multiple)
A) The class declarationB) The access modifiersC) The encapsulation of data & methods with in objectsD) The use of pointers
-
Which of the following statements correctly describes an interface?
A) It's a concrete classB) It's a superclassC) It's a type of abstract class
-
An applet is downloaded on demand
A) TrueB) False
-
Java enables the creation of cross-platform programs by compiling into an intermediate representation called Java ____________
A) Byte CodeB) FirewallC) Tetra CodeD) View Code
-
Through the use of inheritance, programmers can reuse the code in the superclass many times.
Skill/Topic: InheritanceA) TrueB) False
-
-
-
-
-
-
-
-
}
}
public class test1 extends test
{
public void say()
{
super.hello();
hello();
}
public void main(String arg[])
{
test1 t = new test1();
t.say();
}
}
In the above code what will be difference of super.hello(); and hello();. What is use of super instead of calling directly method name.
">Public class test{ public void hello() { System.out.println("Helllo"); }}public class test1 extends test{ public void say(){ super.hello(); hello();}public void main(String arg[]){ test1 t = new test1(); t.say();}}In the above code what will be difference of super.hello(); and hello();. What is use of super instead of calling directly method name.
-
-
-
-
-
Run Time Exceptions
What do exception mean in java ? what type of run time exceptions?
Java Interview Questions
Ans