aspose file tools*
The moose likes Certification Results and the fly likes Few Tips. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » Certification Results
Bookmark "Few Tips." Watch "Few Tips." New topic
Author

Few Tips.

Shalini Gopalan
Greenhorn

Joined: Dec 25, 2000
Posts: 12
Please answer or correct the following, quoting the tip number.
I promise you these tips may make a big difference in the exam.
However run small code snippets in your JDK and inscribe the results and the underlying
concepts in your memory.
1. An anonymous class's argument list should match the
super class's constructors' argument lists.
2. Understanding the inappropriate way to overload and override.
Trying to overload only with a change in return type does
not work. Also, check whether such things will result
in compile time error or run time exception.
3. Check if a method that throws an exception should
necessarily declare that exception as
"throws <exceptionname>"
4. Understand the class hierarchies between Error,
RunTimeException and Exception
5. Write a code which has a try {} block, finally {} block
but no catch() {} block. Compilation may fail.
6. Look at the possible data types for x in switch(x).
7. Remember that an arithmetic expression should never be
used in stead of boolean expression in if ( ) and while ( )
statements.
8. Understand math.floor and math.ceil ( and of course the
other methods ). The result of these two on negative
numbers should also be noted.
9. substring method syntax.
(startindex and endindex or startindex and numofchars ? )
10. The command line arguments. The first arg is always
arg[0].
11. which method launches a new thread ( run() or start() )
12. Which layout(s) is more useful, if you want the components
to resize horizantally , but not vertically, when the
container is resized ?
13. what happens when you say
o1.equals(o2) where
o1 is Boolean and o2 is String and both holds true
and "true" respectively ?
14. When a method is passed a reference (refStr) to a String
object and the method says "refStr += " appendix "
what is the effect in the calling block of code ?
15. >> and >>> on a positive number results the same.
Shalini ��
Camel_Hunter2001@yahoo.com
[This message has been edited by Shalini Gopalan (edited December 27, 2000).]
[This message has been edited by Shalini Gopalan (edited December 27, 2000).]
[This message has been edited by Shalini Gopalan (edited December 27, 2000).]
anjan bhushan
Ranch Hand

Joined: Dec 12, 2000
Posts: 71
Hi Shalini
They semms to be useful.Kindly throw more light on threads
anjan


I am the most eligible bachelor in whole world, but only known in limited territory!!!
Digital Intoxication Blog
Shalini Gopalan
Greenhorn

Joined: Dec 25, 2000
Posts: 12
What if only one thread waits for a lock on the object, and
another thread issues a notify() call, is the first thread
sure to run or there is a possibility that the first thread
will still never run ?
Someone who is an authority on threads can explain the related
concepts too, for the benefit of others.
Bharatesh H Kakamari
Ranch Hand

Joined: Nov 09, 2000
Posts: 198
5. Write a code which has a try {} block, finally {} block
but no catch() {} block. Compilation may fail.

This is wrong. try block MUST be followed by either a catch block or finally block. Having a catch block is not a must.
HTH
Shalini Gopalan
Greenhorn

Joined: Dec 25, 2000
Posts: 12
That explains why i passed with not-so-good-a-score.
Thanks.
anjan bhushan
Ranch Hand

Joined: Dec 12, 2000
Posts: 71
Hi All SCJP
Kindly extend the thread for more content to be included.
Regards
anjan
Ajith Kallambella
Sheriff

Joined: Mar 17, 2000
Posts: 5782
I am going to move this thread to SCJP Study forum for the benefit of wider audience.
Ajith


Open Group Certified Distinguished IT Architect. Open Group Certified Master IT Architect. Sun Certified Architect (SCEA).
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Few Tips.