JavaBeat

  • Home
  • Java
    • Java 7
    • Java 8
    • Java EE
    • Servlets
  • Spring Framework
    • Spring Tutorials
    • Spring 4 Tutorials
    • Spring Boot
  • JSF Tutorials
  • Most Popular
    • Binary Search Tree Traversal
    • Spring Batch Tutorial
    • AngularJS + Spring MVC
    • Spring Data JPA Tutorial
    • Packaging and Deploying Node.js
  • About Us
    • Join Us (JBC)
  • Privacy

Finalize Method – OCPJP 6

February 2, 2014 by Krishna Srinivasan Leave a Comment

2) What will be the output of the following program? The program will output ‘finalize’. It is unsure that the finalize() method will be called by the Garbage Collector. As soon the object reference ‘object’ is set to null, there is a possibility that the method ‘finalize()’ will be called. The program will cause compile-time […]

Filed Under: Certifications Tagged With: OCPJP, OCPJP 6

Console API – OCPJP 6

February 2, 2014 by Krishna Srinivasan Leave a Comment

5) What will be the output of the following program? The program will output ‘100.000000 – 100’. The program will output ‘100 – 100.000000’. The program will throw a IllegalFormatConversionException at run-time. The program will output ‘100 – 100’. Get more questions on Console Answer 5) b. Here the ordering of the arguments (anInt and […]

Filed Under: Certifications Tagged With: OCPJP, OCPJP 6

Garbage Collection – OCPJP 6

February 2, 2014 by Krishna Srinivasan Leave a Comment

3) Which of the following statements are true about the following program? The button object ‘button’ will become a candidate for garbage collection as soon the execution of Line A ends since the object is not used elsewhere. The newly created StringBuilder object as a result of method call in Line C becomes eligible for […]

Filed Under: Certifications Tagged With: OCPJP, OCPJP 6

NavigableMap – OCPJP 6

February 2, 2014 by Krishna Srinivasan Leave a Comment

NavigableMap is similar to NavigableSet. In NavigableMap we will use key value pairs to reterive the value. see the following code: Look into the following code snippet: In tha bove code NavigableMap API is used for reteriving the less than and greater than value based on key. The output would be like this: 2) What will be the output of the […]

Filed Under: Certifications Tagged With: OCPJP, OCPJP 6

NavigableSet – OCPJP 6

February 2, 2014 by Krishna Srinivasan Leave a Comment

NavigableSet API is included in the ocpjp 6 certification exam. This article explains few important methods with simple example program.NavigableSet is the subinterface of SortedSet. This interface defines methods for finding the element in a list. For example lower() method used for finding the element which is less than the given value. Look into the following example: In the […]

Filed Under: Certifications Tagged With: OCPJP, OCPJP 6

OCPJP 6 / SCJP 1.6 Syllabus

February 2, 2014 by Krishna Srinivasan Leave a Comment

Section 1: Declarations, Initialization and Scoping Develop code that declares classes (including abstract and all forms of nested classes), interfaces, and enums, and includes the appropriate use of package and import statements (including static imports). Develop code that declares an interface. Develop code that implements or extends one or more interfaces. Develop code that declares […]

Filed Under: Certifications Tagged With: OCPJP, OCPJP 6

OCPJP 8 / OCPJP 7 Exam Details

January 23, 2014 by Krishna Srinivasan Leave a Comment

The Oracle Certified Professional for Java Platform, Standard Edition 6 certification exam is 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 and can create Java technology applications that run on server and desktop systems using […]

Filed Under: Certifications Tagged With: OCPJP, OCPJP 6

OCPJP 6 Mock Exam – 21

January 23, 2014 by Krishna Srinivasan Leave a Comment

1 . Given: Which two construct an anonymous inner class? Choose the two below: AnAdapter1 aa = new AnAdapter1 () {} AnAdapter0 aa = new AnAdapter0 () {} AnAdapter0 aa = new AnAdapter0 (5) {} AnAdapter1 aa = new AnAdapter1 (5) {} AnInterface ai = new Anlnterface (5)) { 2 . What will be the […]

Filed Under: Certifications Tagged With: OCPJP, OCPJP 6

OCPJP 6 Mock Exam – 20

January 23, 2014 by Krishna Srinivasan Leave a Comment

1 . Which of the following are valid array construction? int a[] = new int[]; int a[] = new int[10]; int a[10] = new int[]; int a[] = new a[10]; 2 . Which of the following are valid array initialization? new int[] = {1,2,3,4}; new int[10] = {1,2,3,4}; new int[] = 1,2,3,4; new int[] = […]

Filed Under: Certifications Tagged With: OCPJP, OCPJP 6

OCPJP 6 Mock Exam -19

January 22, 2014 by Krishna Srinivasan Leave a Comment

1 . What will be the output? Choose the one below: 10 0 Nothing is printed Compiler error 2 . which of the following modifiers are applied to the nested classes class? private protected public static All the above 3 . which of the following modifiers are applied to the top level classes? static private […]

Filed Under: Certifications Tagged With: OCPJP, OCPJP 6

  • 1
  • 2
  • 3
  • Next Page »

Follow Us

  • Facebook
  • Pinterest
JavaBeat

FEATURED TUTORIALS

Servlet Life Cycle: Explanation

Servlet Life Cycle: Explanation

What is new in Java 6.0 Collections API?

The Java 6.0 Compiler API

The Java 6.0 Compiler API

Copyright © by JavaBeat · All rights reserved

This website uses cookies to ensure you get the best experience on our website. Learn more.