Computer Knowledge

Java Enterprise and Web Technologies

2,279 Questions

Java enterprise and web technologies questions focus on J2EE architecture, web services like SOAP, and servlet functionalities. These topics frequently appear in IT officer and specialist scale examinations. Regular practice ensures familiarity with enterprise application components.

HttpServlet methodsSOAP and web servicesEJB architecture rolesJ2EE componentsJSP servlet callingUDDI concepts

Java Enterprise and Web Technologies Questions

Multiple choice technology web technology
  1. Http-Post

  2. Http-Get

  3. SOAP

  4. All the above

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

ASP.NET Web Services support multiple protocols for communication. HTTP-GET and HTTP-POST are simpler protocols for basic method invocations, while SOAP provides a robust, standards-based protocol with envelope formatting and WS-* extensions. The service can be configured to expose endpoints via any or all of these protocols simultaneously.

Multiple choice technology platforms and products
  1. Activity, Service, Process and Content Provider

  2. Activity, Intent, Process and Service

  3. Activity, Service, Broadcast Receiver and Content provider

  4. Service, Process, Broadcast Receiver and Content Provider

  5. None of above

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

The four official Android application components are Activities, Services, Broadcast Receivers, and Content Providers. Options A and D incorrectly include 'Process', which is not an application component but a runtime container. Option B incorrectly includes 'Intent', which is a messaging object, not a component.

Multiple choice technology programming languages
  1. java.io

  2. java.util

  3. javax.xml.stream

  4. java.io.*

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The RandomAccess interface is part of the java.util package in Java Collections Framework. It's a marker interface used by List implementations to indicate that they support fast (generally constant time) random access to elements, like ArrayList.

Multiple choice technology programming languages
  1. request

  2. ServletConfig

  3. ServletContext

  4. application

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The init method in a servlet receives a ServletConfig object as its parameter. This object contains servlet-specific initialization parameters and configuration information. ServletContext represents the entire web application context, not individual servlet configuration.

Multiple choice technology web technology
  1. ASPApplication

  2. HttpsApplication

  3. ASPNETApplication

  4. NETApplication

  5. HttpApplication

Reveal answer Fill a bubble to check yourself
E Correct answer
Explanation

When ASP.NET parses and compiles global.asax, it creates a dynamic class that inherits from HttpApplication (note: not ASPApplication, HttpsApplication, ASPNETApplication, or NETApplication). This base class provides application-level events and functionality.

Multiple choice technology web technology
  1. True

  2. False

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

Web Services fundamentally use XML as the data exchange format, making them platform-independent. Any system can communicate with any other system regardless of programming language or operating system, as long as they can parse XML. This is a core advantage of the web services architecture.

Multiple choice technology web technology
  1. the currency conversion

  2. weather reports

  3. the language translation

  4. web browsers

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

Web Services offer application components like currency conversion, weather reports, and language translation as remote services over the network. Web browsers are client applications that consume web services and web content, not components that web services offer. Browsers are the consumers, not the provided service.

Multiple choice technology web 2.0
  1. Servelt

  2. PHP

  3. Javascript

  4. ASP

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

Javascript is historically and primarily a client-side scripting language executed in the browser, whereas Servlets, PHP, and ASP are designed specifically for server-side execution. While modern environments like Node.js enable server-side JavaScript, in standard web development contexts, Javascript is categorized as client-side.

Multiple choice technology operating systems
  1. activity,service,broadcast transmitter and content provider

  2. actions,service,broadcast receiver and content enabler

  3. activity,servlets,broadcast enabler and content getter

  4. activity,service,broadcast receiver and content provider

  5. activity,service,transmitter,receive

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

Android has four major application components: Activities (UI screens), Services (background operations), Broadcast Receivers (respond to system-wide broadcasts), and Content Providers (manage data sharing between apps). Option D correctly lists all four. The other options use incorrect terminology like 'transmitter', 'enabler', 'servlets' which are not Android component names.

Multiple choice technology operating systems
  1. android.net.wifi

  2. android.wifi.net

  3. android.net.wireless

  4. android.wireless.net

  5. android.wifi.wireless

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

The android.net.wifi package provides classes to manage Wi-Fi functionality on Android devices. This package includes WifiManager for accessing Wi-Fi network information, configuring networks, and scanning for available networks. The package naming convention in Android follows reverse domain notation with android.net.wifi being the correct package name. Options B, C, D, E all have incorrect word orders or use 'wireless' instead of 'wifi'.

Multiple choice technology operating systems
  1. contents

  2. filter

  3. intents

  4. activator

  5. servlets

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

Intents are the messaging system in Android that activate core components like activities, services, and broadcast receivers. An Intent is essentially a message object that requests an action from another component. Contents and filters are UI concepts, servlets are Java web technologies, and 'activator' is not an Android term.

Multiple choice technology packaged enterprise solutions
  1. Activity

  2. Service

  3. Broadcast Transmitter

  4. Broadcast Receiver

  5. Content Provider

Reveal answer Fill a bubble to check yourself
E Correct answer
Explanation

A Content Provider manages access to a central repository of data, allowing applications to securely share data with other apps. Activities handle UI, Services run background tasks, and Broadcast Receivers listen for system-wide announcements, leaving Content Provider as the correct component for sharing data.

Multiple choice technology
  1. Eclipse 3.5 classic

  2. 32-bit Windows XP, Vista or 7(64-bit version requires 32-bit Java and Eclipse)

  3. PC with Intel Pentium 4 processor or compatible(2.5 GHz or more)

  4. 2GB RAM , 1.5 GB HARD DISK FREE

  5. Java SE Development Kit(JDK) 6, update 10 or later

  6. All the above

Reveal answer Fill a bubble to check yourself
F Correct answer
Explanation

This question follows a standard 'All the above' pattern. For BlackBerry Java development, you typically need: Eclipse IDE, Windows OS (32-bit recommended even on 64-bit systems due to Java/Eclipse compatibility), adequate hardware (processor, RAM, disk space), and Java SE JDK 6 or later. Since options A-E represent individual technical requirements and F encompasses all of them, F is the correct answer.

Multiple choice technology
  1. Java SE Development Kit(JDK) version 5

  2. Java SE Development Kit(JDK) version 6

  3. Java SE Development Kit(JDK) version 7

  4. Java SE Development Kit(JDK) version 8

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

BlackBerry MDS-CS (Mobile Data System Connection Service) requires Java SE Development Kit (JDK) version 6. This is the minimum supported version for developing and deploying applications that use MDS-CS services. Earlier versions lack necessary features, while later versions may have compatibility issues with older BlackBerry SDKs.