Questions tagged [ocpjp]

OCPJP (Oracle Certified Professional, Java Programmer), formerly Sun Certified Java Programmer (SCJP), is a certification for programmers experienced using the Java programming language. Achieving this certification provides clear evidence that a programmer understands the basic syntax and structure of the Java programming language.

http://education.oracle.com/pls/web_prod-plq-dad/db_pages.getpage?page_id=320&p_org_id=28&lang=US

80 questions
0
votes
3 answers

Why List newList = new ArrayList() violates type safety?

Possible Duplicate: Is `List` a subclass of `List`? Why aren’t Java’s generics implicitly polymorphic? I have declared these classes: class Cereal{} And: public class Flakes extends Cereal{ public static void main(String[] args)…
InfZero
  • 2,944
  • 4
  • 24
  • 36
-1
votes
2 answers

Formatters in java

%b, %c, %d, %f, %s How does this work in java? I have been trying to read Formatter class and formattable interface however, I am unable to understand in regards to the conversions passed as arguments. For example: System.out.printf("%f not equals…
user2046417
-1
votes
1 answer

FileSystem vs FileSystems what is the relation between them? (Java)

What's the relation between those 2 class? More in detail, how can I use the getPathMatcher method in the FileSystem class? Anybody can give me a some clarity between those 2 classes? Thanks in advance indeed.
Rollerball
  • 12,618
  • 23
  • 92
  • 161
-2
votes
1 answer

Java - Choosing the right collection

Possible Duplicate: Rule of thumb for choosing an implementation of a Java Collection? I am looking for a 'Summary' list of all the Java collections detailing the pros and cons of each. I am particularly interested in things like Which provide…
ziggy
  • 15,677
  • 67
  • 194
  • 287
-3
votes
1 answer

Relation between equals() method and == operator

I know that == operator is applicable for content comparison for primitive types and reference comparison for objects. Similarly, .equals() method of object class is for reference comparison of objects and content comparison in strings and wrapper…
kittu
  • 6,662
  • 21
  • 91
  • 185
1 2 3 4 5
6