Home / MCQ Bank / Computer
Computer Overriding And Overloading Difficulty: Medium

What will be the output of the following Java code? class A { public void m1 (int i,float f) { System.out.println(" int float method"); } public void m1(float f,int i); { System.out.println("float int method"); } public static void main(String[]args) { A a=new A(); a.m1(20,20); } }

Select the correct option to test your answer:

More Computer Questions

TO enable the compressed client/server protocol the option is . . . . . . . . What will be the output of the following C code? #define example(s,n) #s #n main() { printf(example(hello,world)); } Determine output: public class Test{ int a = 10; public void method(int a){ a += 1; System.out.println(++a); } public static void main(String args[]){ Test t = new Test(); t.method(3); } } What is the time complexity for decreasing priority of key in a minimum ternary heap of n elements? Determine output: #include <stdio.h> void main() { char *p = NULL; char *q = 0; if(p) printf(" p "); else printf("nullp"); if(q) printf("q"); else printf(" nullq"); }