• 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

OCEJWCD 6 Mock Exam – 5

February 7, 2014 //  by Krishna Srinivasan//  Leave a Comment

1 . Assume that the following header is present in a request sent to a servlet: What will be returned when the servlet code calls request.getHeader(“Accept”)? Choose the one below: A Header object containing, name as “Accept” and value as “image/gif” A Header object containing, name as “Accept” and value as “image/gif, image/jpeg, image/bmp” A …

Category: CertificationsTag: OCEJWCD, OCEJWCD 6

OCEJWCD 6 Mock Exam – 4

February 7, 2014 //  by Krishna Srinivasan

1 . Consider the following web.xml code: Which of the following statements are correct? Choose the one below: The servlet code should use “manager” as a parameter in request.isUserInRole() method The servlet code can use “manager” or “supervisor” as a parameter in request.isUserInRole() method The servlet code should use”supervisor” as a parameter in request.isUserInRole() method …

Category: CertificationsTag: OCEJWCD, OCEJWCD 6

OCEJWCD 6 Mock Exam – 3

February 7, 2014 //  by Krishna Srinivasan//  Leave a Comment

1 . Regarding the processing of a BodyTag handler,in which of the following cases a BodyContent object will be “pushed” into the pageContext? If the doStartTag() returns EVAL_BODY_INCLUDE If the doStartTag() returns EVAL_BODY_BUFFERED If the doStartTag() returns SKIP_BODY If the doStartTag() DOES NOT return SKIP_BODY A BodyContent object it is always created and pushed no …

Category: CertificationsTag: OCEJWCD, OCEJWCD 6

OCEJWCD 6 Mock Exam – 2

February 7, 2014 //  by Krishna Srinivasan//  Leave a Comment

1 . You are using a tag library with prefix “generator”, which supports a tag named “random”.This tag generates a random number and sets it to a variable named “value”.Which of the following will output this value in the page? <generator:random>value</generator:random> <generator:random><%=value%></generator:random> <generator:random><% int value;%> <%=value%></generator:random> <generator:random><%getParameter(“value”)%></generator:random> None of the above 2 . Which of …

Category: CertificationsTag: OCEJWCD, OCEJWCD 6

OCEJWCD 6 Mock Exam – 1

February 7, 2014 //  by Krishna Srinivasan//  Leave a Comment

1 . A web.xml for a web application contains the following: What should formlogin.html contain? Choose the one below: A base 64 encoded username and password A header that prompts the browser to pop up the username/password dialog A form that POSTs to j_security_check url Any html page that does not require the user to …

Category: CertificationsTag: OCEJWCD, OCEJWCD 6

OCPJBCD Mock Exam – 4

February 6, 2014 //  by Krishna Srinivasan//  Leave a Comment

1 . Which of the following statements are true about the Entity class? Entity class must not have no-arg constructor Entity class must be declared as top level class Interface cannot be Entity Enum can be declared as Entity 2 . Which of the following are correct? Choose the one below: 1 2 3 4 …

Category: CertificationsTag: OCPJBCD

OCPJBCD Mock Exam – 3

February 6, 2014 //  by Krishna Srinivasan//  Leave a Comment

1 . A stateless session bean must commit a transaction before a business method? True False 2 . A message-driven bean must commit a transaction before a business method? True False 3 . A stateful session bean must commit a transaction before a business method? True False 4 . By default, What is the value …

Category: CertificationsTag: OCPJBCD

OCPJBCD Mock Exam – 2

February 6, 2014 //  by Krishna Srinivasan//  Leave a Comment

1 . Can we use the annotation @PrePassivate for more than one method in a bean? Yes No 2 . What should be the return type of the method using @PrePassivate? Object void String boolean 3 . Which of the following are correct statements about @PrePassivate? Method’s return value must not be void Method cannot …

Category: CertificationsTag: OCPJBCD

  • « Go to Previous Page
  • Go to page 1
  • Go to page 2
  • Go to page 3
  • Go to page 4
  • Go to page 5
  • Interim pages omitted …
  • 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