JAVA
2.7K subscribers
73 photos
111 files
76 links
Download Telegram
interface A{
public void aaa();
}
class AA implements A{
public void aaa(){
System.out.println("Hi");
}
}
class D extends AA{
public class Exa{
public void aaa(){
System.out.println("Wow");
}
public void main (String[] args) {
A a=new D();
a.aaa();
}
}
public void aaa(){
System.out.println("Bye");
}
}
public class Program
{
Integer funn(Integer a,Integer b){
if(b>a){
return b+funn(a+1,b-1);
}
else{
return a;
}
}
public static void main(String[] args) {
Program p=new Program();
System.out.println(p.funn(2,5));
}
}
Options
Anonymous Quiz
14%
16
45%
27
24%
6
18%
13
public class Program
{
static String getString(long... ls){
return "ONE";
}
static String getString(Long... ls){
return "TWO";
}
static String getString(Integer i1,Integer i2){
return "THREE";
}
static String getString(Long l1,Long l2){
return "FOUR";
}
static String getString(Number n1,Number n2){
return "FIVE";
}
public static void main(String[] args) {
System.out.println(getString((byte)5,(byte)10)+","+getString(5,10));
System.out.println(getString(5L,10)+","+getString(5L,10L));
}
}
What will be the output of the following pseudocode for a=6,b=6,c=4?

Integer funn(Integer a,Integer b,Integer c){
c=b+c;
c=7+c;
if((5-3)<(10-b)||a<b)
a=8+c;
b=12+b;
a=(b+b)+b;
return a+b+c;
}
Options
Anonymous Quiz
48%
89
21%
100
16%
70
14%
92
What will be the output of the following pseudocode for a=8,b=6,c=9?

Integer funn(Integer a,Integer b,Integer c){
for(each c from 3 to 6){
b=5+a;
if((c+a)>(a-c))
continue
Else
a=7+a;
a=(a&b)+b;
End if
End for
return a+b;
End function funn()
Options
Anonymous Quiz
22%
10
46%
21
24%
29
7%
38