1. Which is a valid declaration within an interface?





Ask Your Doubts Here

Type in
(Press Ctrl+g to toggle between English and the chosen language)

Comments

  • By: guest on 02 Jun 2017 01.25 am
    (A) is valid interface declarations. (B) and (C) are incorrect because interface variables cannot be either protected or transient. (D) is incorrect because interface methods cannot be final or static.
Show Similar Question And Answers
QA->To visit which countries, Indians over 65 and under 15 years can now use Aadhaar Card as a valid travel document?....
QA->Which of the following is not a valid version of MS Office ?....
QA->Which of the following are valid minimum and maximum zoom size in MS Word ?....
QA->Which of the following is not a valid data type in Excel?....
QA->In which year the Indian National Congress passed a resolution in Madras which declared that ‘the basis of future Constitution of India must be a declaration of Fundamental Rights’?....
MCQ->Which of the following statements are correct about an interface in C#.NET? A class can implement multiple interfaces. Structures cannot inherit a class but can implement an interface. In C#.NET, : is used to signify that a class member implements a specific interface. An interface can implement multiple classes. The static attribute can be used with a method that implements an interface declaration.....
MCQ->Which of the following are true statements? The Iterator interface declares only three methods: hasNext, next and remove. The ListIterator interface extends both the List and Iterator interfaces. The ListIterator interface provides forward and backward iteration capabilities. The ListIterator interface provides the ability to modify the List during iteration. The ListIterator interface provides the ability to determine its position in the List.....
MCQ->Which of the following statements are correct about an interface used in C#.NET? An interface can contain properties, methods and events. The keyword must implement forces implementation of an interface. Interfaces can be overloaded. Interfaces can be implemented by a class or a struct. Enhanced implementations of an interface can be developed without breaking existing code.....
MCQ->interface DoMath { double getArea(int rad); } interface MathPlus { double getVol(int b, int h); } / Missing Statements ? / which two code fragments inserted at end of the program, will allow to compile? class AllMath extends DoMath { double getArea(int r); } interface AllMath implements MathPlus { double getVol(int x, int y); } interface AllMath extends DoMath { float getAvg(int h, int l); } class AllMath implements MathPlus { double getArea(int rad); } abstract class AllMath implements DoMath, MathPlus { public double getArea(int rad) { return rad rad 3.14; } }....
MCQ->A medium of relative permittivity εr2 = 2 forms an interface with free space. A point source of EM energy is located in the medium at a depth of 1 meter from the interface. Due to the total internal reflection, the transmitted beam has a circular cross-section over the interface. The area of the beam cross section at the interface is given by....
Terms And Service:We do not guarantee the accuracy of available data ..We Provide Information On Public Data.. Please consult an expert before using this data for commercial or personal use | Powered By:Omega Web Solutions
© 2002-2017 Omega Education PVT LTD...Privacy | Terms And Conditions
Question ANSWER With Solution