Shivani Chandna

Ranch Hand
+ Follow
since Sep 18, 2004
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
1
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Shivani Chandna

I had used the above - and on the whole - disregarding the low coverage of concurrency and throws clause - it was definitely useful.
Passed it !. Total study duration : 2.5 weeks.
I would suggest people planning it to go for a 2 month duration of study - rather than just a week or two !
Reason being - hands on requires a lot of time - especially with NIO2 and Concurrency classes. And then - it's better to give with more hands on than less !

The first thing to remember for this exam is read the API Docs - there is so much more information in them than any of the books - You will be surprised that they are very elaborate for a lot of things.
So read - every method definition,even each constant definition, exception - hierarchy - when and how it is raised. Go through all of it.
As of now , no book covers details as much as the API DOCs ;) So read them before you give the exam.

More tips later...
Yes, for 805 exam the topics are fewer and also the cost of upgrade is less. So in general better to go for upgrade.
http://docs.oracle.com/javase/tutorial/essential/concurrency/syncmeth.html

When constructing an object that will be shared between threads, be very careful that a reference to the object does not "leak" prematurely. For example, suppose you want to maintain a List called instances containing every instance of class. You might be tempted to add the following line to your constructor:

instances.add(this);

But then other threads can use instances to access the object before construction of the object is complete.



Can someone please give an example explaining the above?

Thanks
Shivani

Hello,

Has anyone understood the importance of these extensions - Please can you give examples of how these can be useful?.
Is understanding these - important for for jdk7 programmer certificate?

From the oracle docs - http://docs.oracle.com/javase/tutorial/i18n/locale/extensions.html
getUnicodeLocaleKeys() – Returns the Unicode locale key codes or an empty set if the locale has none. For the German example, this would return a set containing the single string "co".
getUnicodeLocaleType(String) – Returns the Unicode locale type associated with the Unicode locale key code. Invoking getUnicodeLocaleType("co") for the German example would return the string
"phonebk".
getUnicodeLocaleAttributes() – Returns the set of Unicode locale attributes associated with this locale, if any. In the German example, this would return a set containing the single string "email".


Thanks!
Shivani
Error in oracle tutorial for NIO2. toRealPath API cannot take boolean as param::



The toRealPath method returns the real path of an existing file. This method performs several operations in one:

If true is passed to this method and the file system supports symbolic links, this method resolves any symbolic links in the path.
If the Path is relative, it returns an absolute path.
If the Path contains any redundant elements, it returns a path with those elements removed.



http://docs.oracle.com/javase/tutorial/essential/io/pathOps.html
http://docs.oracle.com/javase/7/docs/api/java/nio/file/Path.html#toRealPath(java.nio.file.LinkOption...)

In NIO2 oracle tutorial it says: http://docs.oracle.com/javase/tutorial/essential/io/dirs.html#listdir

Note that if there is an exception during directory iteration then DirectoryIteratorException is thrown with the IOException as the cause. Iterator methods cannot throw exception exceptions.



Can someone elaborate on that?

Thanks
Oracle docs: http://docs.oracle.com/javase/7/docs/api/java/nio/file/Files.html#copy%28java.nio.file.Path,%20java.nio.file.Path,%20java.nio.file.CopyOption...%29

DirectoryNotEmptyException - the REPLACE_EXISTING option is specified but the file cannot be replaced because it is a non-empty directory (optional specific exception)

Please explain this further
11 years ago
Hello,

Has anyone tried to use the practice questions from: http://www.epractizelabs.com/certification/sun/javase7ocp.html
Need to know other's experience before going for it?

Shivani
Have you checked the mysql java connector jar is in classpath?

Regards,
Shivani
Congrats ! Given it finally ...

Usage of PrimaryKeyJoinColumn:

(1) For defining linkage to a secondary table:
@SecondaryTable(name="EMP_ADDRESS",
pkJoinColumns=@PrimaryKeyJoinColumn(name="EMP_ID"))

(2)
When no additional foreign key column in either table.In this case, @PrimaryKeyJoinColumn is used instead of an @JoinColumn annotation.


Usage of JoinColumn:

A relationship mapping where one table has a reference to another table.
i.e existence of foreign key column. In JPA its called join columns and
@JoinColumn annotation is the primary annotation used to configure these types of columns. Eg: