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