GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Certification  >  Sun  >  310-051
Go To First  |  Previous Question  |  Next Question 
 310-051  |  Question 371 of 421    Print  
A sample program ships with 2 properties files - Base.properties, Base_fr.properties. If the current Locale, Locale.ENGLISH has no matching properties file, what will happen when the ResourceBundle.getBundle method is called with ’Base’ and Locale. English as parameters?

A Since a matching properties file is not found, an exception is thrown
B This would not pose a problem because when a matching properties file is not found, the default properties file is used instead.

Answer: B




  
Total Answers and Comments: 0 Last Update: N/A   
  
 Sponsored Links

 

No answers are posted for this question yet.
Be the first to answer it!


 Related Questions

 Which of the following are true about Passive Replication?  A             Primary Service and all replicas respond to all requestsB              Primary Service randomly delegates requests to one of the secondary replicasC              Primary service handles all requestsD             
 Choices C, D and F are correct. In Passive Replication, the primary service handles all requests. The state of the replicas is periodically synchronized. In the event that the primary service 

 CORBA is a standard for A             Messaging using virtual channels called QueuesB              Standardized development practicesC              Messaging using virtual channels called topicsD              Accessing distributed object
 Choice D is correct. Common Object Request Broker Architecture (CORBA) is a standard for distributed communication involving applications written using different languages. Hence choice D is 

 RMI-IIOP does not provide which of the following capabilities?  A             Remote Method InvocationB              Stub DownloadsC              Objects pass by value (state only)D              Distributed Garbage Collection
 Choices B and D are correct. RMI-IIOP does not support Stub downloads and distributed garbage collection. Hence choices B and D are correct.Both Remote Method Invocation and Objects pass by 

 Undefined Primary Keys refers to? A             Refers to Entity Beans that do not use Primary KeysB              Primary Keys that are defined during developmentC              Primary Keys that remain undefined until the bean is deployedD             
 Choice C is correct. One problem with container-managed persistence in EJB 1.0 was that the bean developer had to define the primary key during development. This forced the developer to make 

 Which of the following are valid life cycle states for a Stateless Session Bean? A             Does not ExistB              Pooled StateC              Method Ready PoolD              Passive
 Choices A and C are correct. The two valid states in a Stateless Session Bean's life cycle are 'Does Not Exist' and 'Method Ready Pool.' When Beans are not instantiated 

 A session bean called SomeBean has a method called someMethod(), which calls someOtherMethod (same bean) followed by someOtherBeanMethod() of SomeOtherBean. SomeOtherBean is an Entity Bean with CMT. Which of the following is true?  A             SomeOtherBean has no control on the transaction since it is a CMT bean.B              SomeOtherBean has full access
 Choice C is correct. Only BMT beans have access to the User-Transaction from the EJBContext. The EJBContext provides the methods setRollbackOnly() and getRollbackOnly(), to provide CMT beans 

 Which of the following are invalid states in the life of a Stateful Session Bean? A             Does Not ExistB              Method Ready PoolC              Method Ready in TransactionD              Method ReadyE             
 Choices B, E and F are correct. The valid life cycle states of a Stateful Session Bean are 'Does Not Exist', 'Method Ready', 'Method Ready in Transaction' and 'Passive'. 

 What is the sequence of steps in the life cycle of a Stateless Session Bean? A             class.newInstance(), setSessionContext (ctx), ejbCreate()B              ejbCreate(), setSessionContext (ctx), class.newInstance()C              class.newInstance(), ejbCreate(), setSessionContext (ctx)D             
 Choice A is correct. When Stateless Session Beans transition from 'Does Not Exist' to 'Method Ready Pool', the container invokes newInstance(), setSessionContext() and ejbCreate() 

 HTTP is A             Connection LessB              Connection BaseC              StatefulD              StatelessE              Secure
 Choice B and D are correct. HTTP (HyperText Transfer Protocol) is a transport mechanism for MIME (Multipurpose Internet Mail Extensions) documents. MIME documents often contain HTML (HyperText 

  Which of the following is not part of the Messaging architecture: A             Decentralized messaging using IP MulticastingB              Decentralized messaging using Secure Sockets Layer (SSL)C              Use of virtual channels called QueuesD             
 Choice B is correct. Only choice B is not a standard paradigm in messaging architecture. Hence choice B is correct.IP Multicasting can be used as a technique for decentralized messaging. Queues 


 Sponsored Links

 
Related Articles

jQuery - Marking the Current Page

Learning jQuery Marking the Current Page Our pager can be made more user friendly by highlighting the current page number We just need to update the classes on the buttons every time one is clicked mosgoogle geshibot lang php" var pager ; for var page 0; page numPages; page pag
 

SOA Definitions and Certification

SOA Definitions and Certification Service Oriented Architecture is a design that enables Business and computational resources to be linked together on demand as a means of achieving the results desired for service consumers which may be end users or other services Service Oriented Architecture has
 

C++ Pure Virtual Function and Base Class

C Pure Virtual Function and Virtual Base Class In this C tutorial you will learn about pure virtual function declaration of pure virtual function and virtual base class virtual base class and how to implement a virtual base class explained with examples mosgoogle center What is Pure Virtual Function
 

What is Common Data Modeling Method

Common Data Modeling is one of the core considerations when setting up a business data warehouse. Any serious company wanting to have a data warehouse will have to be first serious about data models. Building a data model takes time and it is not unusual for companies to spend two to five years just
 

What is Data File

In a logical data model, the conceptual data model which is based on the business semantic is being defined. Thus, entities and relationships and corresponding table and column design, object oriented classes, and XML tags, among other things are being laid regardless of the database will be physica
 

What is the default return value of a function?

The default return value from a function is int. In other words, unless explicitly specified the default return value by compiler would be integer value from function.   When a programmer wants other than integer values to be returned from function then it is essential that the pro
 

How to develop compile and run a C program

The steps involved in building a C program are: 1. First program is created by using any text editor and the file is stored with extension as .c 2. Next the program is compiled. There are many compilers available like GNU C compiler called as gcc, Sun compiler, Borland compiler which is pop
 

Base Address of the String

What happens when we try to change the value of base address of the string? The base address of the sting takes a special place in the context of strings. This is because suing this base address only the string gets identified. In other words the base address therefore takes the position of constant
 

Importance of Header Files

What is the importance of header files? The main role of header file is it is used to share information among various files. In brief, if we have several functions say 4 functions named as f1, f2, f3, f4 placed in file say sample.c and if all the functions want to get accessed by each other then all
 

Top 10 Application Security Vulnerabilities in Web.config Files - Part One

These days, the biggest threat to an network security comes from its public Web site and the Web-based applications found there. Unlike internal-only network services such as databases-which can be sealed off from the outside via firewalls-a public Web site is generally accessible to anyone who wan
 

About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2010 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape