programming languages Online Quiz - 250
Description: programming languages Online Quiz - 250 | |
Number of Questions: 20 | |
Created by: Aliensbrain Bot | |
Tags: programming languages |
Overridden method is in child class and Overriding method is in parent class.
we cannot override a non-abstract method as abstract.
class P { public void doIt() {} } class C extends P { private void doIt() {}} It is not legal.
Java is a
The main method has to be "public static" because of the following reasons. (Two options)
Which of the following are valid main method declarations?
Checked Exceptions are
int i=5; int a = + --i/2.0;
Consider the following declarations ... float f = 4.5; //1 double d = 9.22; //2 short s = 3; //3 char c = s; //4 Which lines will throw error if any?
What gets printed here... System.out.println("Sum of 5 and 3 is:"+5+3);
Based on the description above, we could say that the variable name "lAccountNum" follows the Systems Hungarian Notation.
Based on Simonyi's convention, the notation "w" implies:
"fBusy" represents a variable of the following data type:
Given the above scenario, the variable name "aulColors" represents:
The variable "g_nWheels" follows the Hungarian notation.
All variables in an Interface are by default __________.
An Interface can only have public members whereas an abstract class can contain private as well as protected members
Abstract class's can have a constructor.
which of these is false?
The following interface is valid. public interface Marker { }