JAVA
2.7K subscribers
73 photos
111 files
76 links
Download Telegram
What is the output of the following pseudocode?
Integer pp,qq,rr
Set pp=8,qq=3,rr=14
qq=(pp+qq)+qq
qq=11^rr
qq=qq+rr
qq=(rr^6)&rr
qq=(rr^6)&rr
Print pp+qq+rr
Options
Anonymous Quiz
29%
34
45%
30
15%
40
11%
26
public class Program
{
public static void main(String[] args) {
class Inner{
public String name;//Line 4
public Inner(String s){
name=s;//Line 7
}
}
Object o=new Inner("Hello");//Line 10
Inner inner=(Inner)o;
System.out.println(inner.name);
}
}
What will be the output of the given code?
Which component is responsible for to optimize bytecode to machine code?
Anonymous Quiz
56%
JVM
14%
JDK
8%
JRE
8%
JIT
11%
All of the above
2%
None of the above
A class is a template for object creation. State true or false
Anonymous Quiz
93%
True
7%
False
Which one among the following is not true about java?
Anonymous Quiz
9%
Platform independent
8%
Object oriented language
8%
It is robust and secure
75%
None of the above
Which is the method used in the below given code to display a text on the console?
Anonymous Quiz
14%
String[]
64%
println()
6%
void main()
15%
All of the above
How do all Variables pass in java?
Anonymous Quiz
50%
By values
21%
By strings
13%
By array
16%
None of the above
String variable contains a collection of characters surrounded by ..........?
Anonymous Quiz
65%
" "
9%
( )
15%
{ }
11%
[ ]
JAVA pinned a file
public class MyExample
{

public static int a=10;
public int b=22;
public in C=33;

}
Identify the class variable(s) in the given code snippet.
Choose the correct option

Which of the following statement is/are true?

1) A public member is accessible wherever the containing class is accessible

2) A protected member is accessible to all the Classes within different packages

3) A private member never accessible outside the containing class