Description: programming languages Online Quiz - 33 | |
Number of Questions: 20 | |
Created by: Aliensbrain Bot | |
Tags: programming languages |
Can you automatically convert long value into int , if the long value is small enough to fit into an int.
Can final method be overridden?
" ?: " is a conditional Operator (T/F)
Using the "Super" keyword we can go one level up (T/F)
assuming all the variables are declared and initialied properly , will the below line compile? for (i=3,j=76;i>589;j++,i++){}
Can a private method of a super class be declared in a sub class?
Using super keywork how many levels up we can go
Which is not a part of java
abstract keyword is used
All classes extend from
The expression to the switch must be of a type
Which of the following are bit wise operators in java?
" ?: " is a
A top level class can be marked as
select which of these are correct
Which of these below are java key words?
class C { public static void main(String[] args) { int i1=1; switch(i1){ case 1: System.out.println("one"); case 2: System.out.println("two"); case 3: System.out.println("three"); }}} What is the result of attempting to compile and run the program?
class C{ int i; public static void main (String[] args) { int i; //1 private int a = 1; //2 protected int b = 1; //3 public int c = 1; //4 System.out.println(a+b+c); //5 }}
Are static methods allowed to access instance variables using "this"
Can constructors be declared static?