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

how to set the
java API
Looping
how to open excel document from jsp
How do I have the user input a date and display it?
How to count the total elements in the jsp form
What is the difference?
Quick help
i need lots of help getting javac/java to work
basic coding
can you help me with this code
Simple Problem while Compling
format date with simple date format
Output number is wrong when inputing number w/commas
Huge size of application jar
help