File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Just some fat trimming =) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Just some fat trimming =)" Watch "Just some fat trimming =)" New topic

Just some fat trimming =)

Matt Ghiold
Ranch Hand

Joined: Feb 24, 2002
Posts: 213
This is a compiliation of the stuff I found very usefull in this thread, that's been digested to a last minute study guide, this is the beta version and will probably get finalized on Saturday, so if there is any interest in the final version, just post it here and I will be glad to post it again.
My goal for this is to read it just before I go to the exam and then again before I take the exam (outside the room ofcourse)
Last Minute Study Notes:
1.When throwing an exception in main make sure there is a try / catch block or a throws clause.
2.A program ends when all non-daemon threads end
3.Constructors are not inherited
4.Main method calling a non static method
5.2 public classes in the same file
6.Local inner classes trying to access not final variables
7.Math class is not immutable
8.instanceOf is not the same as instanceof
9.a missing return statement is a compile time error
10.You cannot do int myArray[5]
11.You cannot do int []myArray = int[5] {3,3,3,3,3}
12.You cannot add a primitive to a vector
13.You cannot use a primitive where an object is expected (for example the .equals method)
14.Watch for local variables declared within a try / catch block
15.Order of try / catch finally block matters
16.-0.0 == 0.0 is true
17.A class without abstract methods can still be declared abstract
18.Collection is an interface
19.Collections is a helper class
20.continue must appear in a loop (for, do, while)
21.Each overloaded method must take a unique list of argument types. Even differences in the ordering of arguments is sufficient to distinguish two methods.
22.Inner classes
Can access all instance variables of the enclosing classes including static, private vars
Static Inner Classes can only access static variables and methods of enclosing classes
Inner classes inside methods can access only final variables of that method and any variables that would be available to that method anyways

-Matt<br /> SCJP2<br /> SCJD
Matt Ghiold
Ranch Hand

Joined: Feb 24, 2002
Posts: 213
Oops, wrong thread, but I am to lazy to fix =(
I agree. Here's the link:
subject: Just some fat trimming =)
It's not a secret anymore!