programming languages Online Quiz - 33
Description: programming languages Online Quiz - 33 | |
Number of Questions: 20 | |
Created by: Aliensbrain Bot | |
Tags: programming languages |
Attempted
0/20
Correct 0
Score 0
‹
›
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
Which of the following are bit wise operators in java?
Using super keywork how many levels up we can go