Results 1 to 6 of 6
- 06-15-2008, 08:34 PM #1
Member
- Join Date
- Jun 2008
- Posts
- 2
- Rep Power
- 0
8 questions I dont understand while studying for SCJP
Hi all,
I want to give my SCJP exam sometime this month. I was reading A Concise and Comprehensive Study Guide for SCJP by Dr. Paul S Sanghera. I would like to ask the learned members of this forum you a few queries that I have. I shall be grateful if you would kindly find time to reply me with your valuable suggestions
1. I know that: If a class is declared final, it means the class cannot be extended, and a final method cannot be overridden. If the element declared final is a variable, that means the value of the variable is constant, and cannot be changed.
My question is: If a final variable is inherited in another class, can it be accessed? And can its value be changed?
2. My question is: Could you please give an example of method call conversion of object reference types?
3. My question: Is it possible to inherit the main() method?
4. My question is: What are anonymous inner classes? Where are they used practically? How are they defined? What is their scope? Can they access variables of the outer class? If so how?
5. Can inner classes be defined inside a method? What is their scope? Can they access the variables within the method? Can they access the variables of the outer class?
6. Are all methods defined in java.lang.Math static?
7. What are factory methods?
8. My question: Can interfaces have classes?
Thanks for your help!
waiting for your quick reply!
-
Most of this can be easily looked up. I counter your questions with a couple of my own: Have you looked these up and wouldn't it be wise for you to present your answers and justifications here first before asking for other's advice?
This would serve two purposes. It would demonstrate that you've done your own work first, and will give a starting point for answers to your questions.
Good luck.
- 06-16-2008, 05:45 AM #3
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,370
- Blog Entries
- 1
- Rep Power
- 26
Yes, most of the questions are not directly related with theories of Java. So you can simple write some code and see what happened. In that way you can learn a lot. First make a try.
- 05-17-2010, 06:19 PM #4
Member
- Join Date
- Feb 2009
- Posts
- 19
- Rep Power
- 0
- 05-19-2010, 04:50 AM #5
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,370
- Blog Entries
- 1
- Rep Power
- 26
- 05-19-2010, 08:53 AM #6
Senior Member
- Join Date
- Aug 2009
- Posts
- 2,388
- Rep Power
- 14
Similar Threads
-
Hello! and I need help. I dont know were to start
By Fall0ut in forum New To JavaReplies: 10Last Post: 05-19-2010, 07:26 PM -
400 Mock Exams Questions for SCJP 1.6
By kks_krishna in forum Java SoftwareReplies: 12Last Post: 11-19-2009, 05:34 PM -
SCJP 1.5 Certification Kit (300+ Questions)
By kks_krishna in forum Reviews / AdvertisingReplies: 3Last Post: 12-16-2008, 06:43 PM -
800 Mock Questions for SCJP 1.6
By Enthuware in forum Java SoftwareReplies: 2Last Post: 01-16-2008, 12:57 PM -
SCJP 1.6 Certification Kit (350+ Questions)
By kks_krishna in forum Reviews / AdvertisingReplies: 0Last Post: 12-30-2007, 01:09 PM
Bookmarks