• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Few Tips.

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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).]
 
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Shalini
They semms to be useful.Kindly throw more light on threads
anjan
 
Shalini Gopalan
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 198
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That explains why i passed with not-so-good-a-score.
Thanks.
 
anjan bhushan
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All SCJP
Kindly extend the thread for more content to be included.
Regards
anjan
 
Sheriff
Posts: 5782
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am going to move this thread to SCJP Study forum for the benefit of wider audience.
Ajith
 
reply
    Bookmark Topic Watch Topic
  • New Topic