study notes for exam

Jun 18th, 2015
Studypool Tutor
Alabama State University
Price: $25 USD

Tutor description

What are the potential trips/traps in SCJP exam? • Two public classes in the same file. • Main method calling a non-static method. • Methods with the same name as the constructor(s). • Thread initiation with classes that dont have a run() method. • Local inner classes trying to access non-final vars. • Case statements with values out of permissible range. • Math class being an option for immutable classes !! • instanceOf is not same as instanceof • Private constructors • An assignment statement which looks like a comparison if ( a=true)... • System.exit() in try-catch-finally blocks. • Uninitialized variable references with no path of proper initialization. • Order of try-catch-finally blocks matters. • main() can be declared final. • -0.0 == 0.0 is true. • A class without abstract methods can still be declared abstract. • RandomAccessFile descends from Object and implements DataInput and DataOutput. • Map doesnot implement Collection. • Dictionary is a class, not an interface. • Colle

Word Count: 23942
Showing Page: 1/61
What are the potential trips/traps in SCJP exam? Two public classes in the same file.Main method calling a non-static method.Methods with the same name as the constructor(s).Thread initiation with classes that dont have a run() method.Local inner classes trying to access non-final vars.Case statements with values out of permissible range.Math class being an option for immutable classes !!instanceOf is not same as instanceofPrivate constructorsAn assignment statement which looks like a comparison if ( a=true)...System.exit() in try-catch-finally blocks.Uninitialized variable references with no path of proper initialization.Order of try-catch-finally blocks matters.main() can be declared final.-0.0 == 0.0 is true.A class without abstract methods can still be declared abstract.RandomAccessFile descends from Object and implements DataInput and DataOutput.Map doesnot implement Collection.Dictionary is a class, not an interface.Collection is an Interface where as Collections is a helper class.Class declarations can come in any order ( derived first, base next etc. ).Forward references to variables gives compiler error.Multi dimensional arrays can be sparce ie., if you imagine the array as a matrix, every row need not have the same number of columns.Arrays, whether local or class-level, are always initialized,Strings are initialized to null, not empty string.An empty string is NOT the same as a null string.A declaration cannot be labelled.continue mus

Review from student

Studypool Student
" AMAZING as always! "
Ask your homework questions. Receive quality answers!

Type your question here (or upload an image)

1830 tutors are online

Brown University





1271 Tutors

California Institute of Technology




2131 Tutors

Carnegie Mellon University




982 Tutors

Columbia University





1256 Tutors

Dartmouth University





2113 Tutors

Emory University





2279 Tutors

Harvard University





599 Tutors

Massachusetts Institute of Technology



2319 Tutors

New York University





1645 Tutors

Notre Dam University





1911 Tutors

Oklahoma University





2122 Tutors

Pennsylvania State University





932 Tutors

Princeton University





1211 Tutors

Stanford University





983 Tutors

University of California





1282 Tutors

Oxford University





123 Tutors

Yale University





2325 Tutors