Categories

JAVA DATEBASE
Technology Network Community
Oracle Database
Fusion Middleware
Development Tools
Java
Desktop
Server & Storage Systems
Enterprise Management
Berkeley DB Family
Cloud Computing
Big Data
Business Intelligence
Architecture
Migration and Modernization
E-Business Suite
Siebel
PeopleSoft Enterprise
JD Edwards World
Industries
JD Edwards EnterpriseOne
User Productivity Kit Pro (UPK) and Tutor
Governance, Risk & Compliance (GRC)
Master Data Management (MDM)
Oracle CRM On Demand
On Demand: SaaS and Managed Applications
AutoVue Enterprise Visualization
Primavera
ATG
Agile PLM
Endeca Experience Management
Fusion Applications
Archived Forums

 



Tags

New To Java


Class SCJP MCQ!


I came accors a SCJP MCQ that is   Which of the following statements are true?  A) A local class can be declared as abstract B) An abstract class can be instantiated C) An abstract class can be implicitly final D) An abstract class must declare at least one abstract method E) An abstract class cannot extend a concrete class  I think the answer is A only.I know that B is wrong because abstract class can not be instantiated.Is my answer is corect or not.If not can anyone give me a explanation.

A,D and E can all be straightforwardly checked.  If you have a problem with them post code, results and question.  As far as B and C are concerned, I'm not sure about the jargon.  What is an "implicitly final" class?  When you talk about instantiating a class, does the following count as instantiating both AbstractClass and ConcreteImplementation?AbstractClass foo = new ConcreteImplementation(); 

A,D and E can all be straightforwardly checked.  If you have a problem with them post code, results and question.  As far as B and C are concerned, I'm not sure about the jargon.  What is an "implicitly final" class? When you talk about instantiating a class, does the following count as instantiating both AbstractClass and ConcreteImplementation?AbstractClass foo =  new ConcreteImplementation();   Still I don't get it how u got D and E as correct.  D says that an abstract class must at least declaire at least one abstract method but i think because u made a class abstract u don't need to say abstract modifier in method because it will be default.    E says abstract class can not extend a concrete  class.how did u get it as correct.can u explain it.  Can anyone futher explain to me whether iam correct or not?

Who said they were correct? What he said was "they can be easily checked". Out of all them statements only A is correct.


Related Links

Getting a "large" quantities of .XCP files generated each day.
Single instance
How to show the (+) and (-) on a JTree rootnode?
Images
batch file command
acceing mobile file structure using J2SE
how to create the setup file in java
retrive?
How to get the information from textboxes?
How to see larger drawings on the screen
JFrame vs JInternalFrame
Broken Booleans
Parse an Int to an Array of Int's
Which application?
Random function error
Need Help