• Menu
  • Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

JavaBeat

Java Tutorial Blog

  • 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)
  • 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)

Certifications

OCPJP 6 Mock Exam -16

January 21, 2014 //  by Krishna Srinivasan//  Leave a Comment

1 . What will be the output? Choose the one below: Compile time error at line 10 Compilation and output of 123 Compilation and output of the digits “1”, “2” and “3”, but the order can’t be determined Compilation and output of onetwothree Compilation but runtime error at line 10 2 . The following is …

Category: CertificationsTag: OCPJP, OCPJP 6

OCPJP 6 Mock Exam -15

January 20, 2014 //  by Krishna Srinivasan//  Leave a Comment

1 . Which of the following can prevent a thread from executing? A call to its pause method A call to Thread.yield() Another thread is given higher priority A call to its halt() method 2 . Which of the following represent correct syntax for assertions? assertion(b==false); assert (b==false); assert() b==false; if(b!=true) assert; 3 . What …

Category: CertificationsTag: OCPJP, OCPJP 6

OCPJP 6 Mock Exam -14

January 20, 2014 //  by Krishna Srinivasan//  Leave a Comment

1 . Given Answer class behaves like some a File it has a Vector, a color, some boolean variable.What is the correct declaration? import public private Vector Serializable File Color extends boolean implements 2 . Some design issues: The following description applies to a class: given someclassname behaves as somesuperclassname and it has some fields …

Category: CertificationsTag: OCPJP, OCPJP 6

OCPJP 6 Mock Exam -13

January 20, 2014 //  by Krishna Srinivasan//  Leave a Comment

1.What will be the output? Choose the one below: True False 2 . What will be the output? Choose the one below: True False 3 . What will be the output? Is the line marked “lots of code” ever reached? Yes No 4 . What will be the output? Choose the one below: The code …

Category: CertificationsTag: OCPJP, OCPJP 6

OCPJP 6 Mock Exam -12

January 20, 2014 //  by Krishna Srinivasan//  Leave a Comment

1 . What will be the output? Choose the one below: the code will compile an print “Equal”. the code will compile an print “Not Equal”. the code will cause a compiler error. 2 . What will be the output? Choose the one below: the code will compile an print “Equal”. the code will compile …

Category: CertificationsTag: OCPJP, OCPJP 6

OCPJP 6 Mock Exam -11

January 20, 2014 //  by Krishna Srinivasan//  Leave a Comment

1 . Consider following classes: What will be the output of running class Test? false false true false true false true true false true true true true true true true true true false true None of the above 2 . Any class may be unloaded when none of it’s instances and class objects that represent …

Category: CertificationsTag: OCPJP, OCPJP 6

OCPJP 6 Mock Exam -10

January 18, 2014 //  by Krishna Srinivasan//  Leave a Comment

1 . Given: What is the result? Compilation succeeds Compilation fails because of an error on line 1 Compilation fails because of an error on line 3 Compilation fails because of an error on line 7 2 . Given: The ClassA class can be compiled successfully by inserting one of three possible options on line 3. …

Category: CertificationsTag: OCPJP, OCPJP 6

OCPJP 6 Mock Exam – 9

January 17, 2014 //  by Krishna Srinivasan//  Leave a Comment

1 . What is the result when you compile and run the following code? Choose the one below: Compile Time error Runtime error Prints Testing myTop method in Top class on the console Prints Testing myTop method in Down class on the screen 2 . Which of the code fragments will throw an “ArrayOutOfBoundsException” ? …

Category: CertificationsTag: OCPJP, OCPJP 6

  • « Go to Previous Page
  • Go to page 1
  • Interim pages omitted …
  • Go to page 5
  • Go to page 6
  • Go to page 7
  • Go to page 8
  • Go to page 9
  • Go to Next Page »

Primary Sidebar

Follow Us

  • Facebook
  • Pinterest

FEATURED TUTORIALS

New Features in Spring Boot 1.4

Difference Between @RequestParam and @PathVariable in Spring MVC

What is new in Java 6.0 Collections API?

The Java 6.0 Compiler API

Introductiion to Jakarta Struts

What’s new in Struts 2.0? – Struts 2.0 Framework

JavaBeat

Copyright © by JavaBeat · All rights reserved
Privacy Policy | Contact