Jai solanki
Description: Ssc | |
Number of Questions: 37 | |
Created by: Sunita singh | |
Tags: Ch 1 |
Overriding and Overloading is for ?
Overriding and Overloading is for ?
Which will legally declare, construct, and initialize an array?
Which will legally declare, construct, and initialize an array?
Which one of the following will declare an array and initialize it with five numbers?
Which one of the following will declare an array and initialize it with five numbers?
Which is the valid declarations within an interface definition?
Which is the valid declarations within an interface definition?
Which is a valid declarations of a String?
Which is a valid declarations of a String?
Which is a valid declarations of a String?
Which is a valid declarations of a String?
Which is a valid declarations of a String?
You want subclasses in any package to have access to members of a superclass. Which is the most restrictive access that accomplishes this objective?
You want subclasses in any package to have access to members of a superclass. Which is the most restrictive access that accomplishes this objective?
What is the most restrictive access modifier that will allow members of one class to have access to members of another class in the same package?
Which cause a compiler error?
You want a class to have access to members of another class in the same package. Which is the most restrictive access that accomplishes this objective?
Which one creates an instance of an array?
Which of the following class level (nonlocal) variable declarations will not compile?
Given a method in a protected class, what access modifier do you use to restrict access to that method to only the other members of the same class?
Which is a valid declaration within an interface?
Suppose that you would like to create an instance of a new Map that has an iteration order that is the same as the iteration order of an existing instance of a Map. Which concrete implementation of the Map interface should be used for the new instance?