Declaration and Access Control The object is created with new keyword None of these At run-time Depends on the code At Compile-time None of these At run-time Depends on the code At Compile-time ANSWER DOWNLOAD EXAMIANS APP
Declaration and Access Control What will be the output for the below code?static public class Test{ public static void main(String[] args){ char c = 'a'; switch(c){ case 65 : System.out.println("one");break; case 'a': System.out.println("two");break; case 3 : System.out.println("three"); } }} two one Compile error - Illegal modifier for the class Test; only public, abstract & final are permitted. None of these Compile error - char can't be permitted in switch statement. two one Compile error - Illegal modifier for the class Test; only public, abstract & final are permitted. None of these Compile error - char can't be permitted in switch statement. ANSWER DOWNLOAD EXAMIANS APP
Declaration and Access Control What can directly access and change the value of the variable qusNo?package com.mypackage;public class Test{ private int qusNo = 100;} Any class in com.mypackage package. None of these Any class that extends Test. Any class. Only the Test class. Any class in com.mypackage package. None of these Any class that extends Test. Any class. Only the Test class. ANSWER DOWNLOAD EXAMIANS APP
Declaration and Access Control A package is a collection of Interfaces Editing tools Editing tools and Interfaces Classes Classes and Interfaces Interfaces Editing tools Editing tools and Interfaces Classes Classes and Interfaces ANSWER DOWNLOAD EXAMIANS APP
Declaration and Access Control What will be the output for the below code?public class Test{ static{ int a = 5; } public static void main(String[] args){ System.out.println(a); }} None of these Compile with error Runtime Exception 0 5 None of these Compile with error Runtime Exception 0 5 ANSWER DOWNLOAD EXAMIANS APP
Declaration and Access Control What is the output for the below code ?public class A{ static{ System.out.println("static"); } { System.out.println("block"); } public A(){ System.out.println("A"); } public static void main(String[] args){ A a = new A(); }} A block static static block A static A None of these A A block static static block A static A None of these A ANSWER DOWNLOAD EXAMIANS APP