Declaration and Access Control What will be the output?public class Test{ public static void main(String[] args){ String value = "abc"; changeValue(value); System.out.println(value); } public static void changeValue(String a){ a = "xyz"; }} None of these abc Compilation fails Compilation clean but no output xyz None of these abc Compilation fails Compilation clean but no output xyz 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"); } }} one two Compile error - Illegal modifier for the class Test; only public, abstract & final are permitted. Compile error - char can't be permitted in switch statement. None of these one two Compile error - Illegal modifier for the class Test; only public, abstract & final are permitted. Compile error - char can't be permitted in switch statement. None of these ANSWER DOWNLOAD EXAMIANS APP
Declaration and Access Control Name the keyword that makes a variable belong to a class, rather than being defined for each instance of the class. native static abstract final volatile native static abstract final volatile 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 that extends Test. Only the Test class. Any class. None of these Any class in com.mypackage package. Any class that extends Test. Only the Test class. Any class. None of these Any class in com.mypackage package. ANSWER DOWNLOAD EXAMIANS APP
Declaration and Access Control A package is a collection of Classes Interfaces Editing tools Classes and Interfaces Editing tools and Interfaces Classes Interfaces Editing tools Classes and Interfaces Editing tools and Interfaces ANSWER DOWNLOAD EXAMIANS APP
Declaration and Access Control The object is created with new keyword At run-time None of these Depends on the code At Compile-time At run-time None of these Depends on the code At Compile-time ANSWER DOWNLOAD EXAMIANS APP