Technology Questions

Q:

What is the most important feature of Java?

Answer Java is a platform independent language.
Report Error

View answer Workspace Report Error Discuss

Subject: Java

0 3447
Q:

Which of the following is not used for commenting in java?

A) // B) /* */
C) /** */ D) /** **/
 
Answer & Explanation Answer: D) /** **/

Explanation:
  • //               is a single line comment
  • /*  */          is commenting on one or more lines
  • /** */         is documentation comment
Report Error

View Answer Report Error Discuss

Filed Under: Java

1 3442
Q:

Explain about struts dispatch action in DHTML

Answer

DispatchAction is an action that comes with Struts 1.1 or later, that let us combine Struts actions into single class, each with their own method. The org.apache.struts.action.DispatchAction class allows multiple operations to map to the different functions in the same Action class.


For e:g; html:hidden property="dispatch" value="error"/>


<SCRIPT>function set(target) {document. forms[0].dispatch. value=target;}</SCRIPT>

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 3430
Q:

What is the difference between OLE Server & OLE Container?

Answer

An OLE server application creates ole Objects that are embedded or linked in OLE Containers ex. OLE servers are ms_word & ms_excel. OLE containers provide a place to store, display and manipulate objects that are created by ole server applications. Ex. oracle forms is an example of an OLE Container.

Report Error

View answer Workspace Report Error Discuss

5 3428
Q:

What is Marker Interface?

Answer

An interface without having any methods and by implementing that interface if our objects will get same ability such type interfaces are called marker interface (or) ability interface (or) tag interface

Report Error

View answer Workspace Report Error Discuss

Subject: Java
Job Role: IT Trainer

1 3427
Q:

Describe how to create a simple AD rotator script without using database in PHP.

Answer

Following are the steps to create a simple AD rotator script without using database in PHP:


- All the ad’s can be collected in one place and be displayed randomly.rand() function can be used for this purpose.


- In order to NOT use any database, a flat file can be used to store the ad’s.


- In order to store the Ad’s information (HTML code), a flat file say “ad.txt” can be created.


- The random number can be stored in a variable 


$result_random=rand(1, 100);


- Conditions can be checked to display the ad’s.


if($result_random<=70)


{


      echo "Display ad1";


}

Report Error

View answer Workspace Report Error Discuss

Subject: PHP

1 3427
Q:

What is personal oracle lite?

Answer

Personal Oracle lite is single user database for distributed and mobile computing. It supports a full range of Java database features as well as advanced replication. Or in other words it is Oracle's lightweight, fully-functional, single-user object- relational database. A small, zero administration embedded database.


Some of the features supported:


- Java Support


- Java Store Procedure Support


- Java triggers Supported


- Multi-column indexing and outer joins.


- Easy to use graphical user interface


- Supports both object and relational database models


- Simultaneous viewing of classes and relational tables

Report Error

View answer Workspace Report Error Discuss

Subject: Oracle

0 3425
Q:

What is the purpose of reserved word using in C#?

Answer

A keyword that specifies that types in a particular nemespace can be referred to without requiring their full qualified type names. 'using' reserved word always come with namespaces. eg. using systems so because of this useful classes supplied by Microsoft which are contained by system namespace are availble for user.

Report Error

View answer Workspace Report Error Discuss

Subject: .NET

0 3421