Home / MCQ Bank / Computer
Computer Flow Control Difficulty: Medium

Which of these is used as a default for a member of a class if no access specifier is used for it?

Select the correct option to test your answer:

More Computer Questions

How many characters can be written with 1 kilobyte ? Which pre-defined function returns a pointer to the last occurence of a character in a string? In advanced MapReduce, what is the significance of the Hadoop MapReduce "MapReduce speculative execution"? Which of these method returns the remainder of dividend / divisor? What will be the output of the following Java code? class overload { int x; double y; void add(int a , int b) { x = a + b; } void add(double c , double d) { y = c + d; } overload() { this.x = 0; this.y = 0; } } class Overload_methods { public static void main(String args[]) { overload obj = new overload(); int a = 2; double b = 3.2; obj.add(a, a); obj.add(b, b); System.out.println(obj.x + " " + obj.y); } }