Interview Questions

Q:

How can your application perform actions that are provided by other application e.g. sending email?

Answer

Intents are created to define an action that we want to perform and the launches the appropriate activity from another application.


Code


        Intent intent = new Intent(Intent.ACTION_SEND);


        intent.putExtra(Intent.EXTRA_EMAIL, recipientArray);


        startActivity(intent);

Report Error

View answer Workspace Report Error Discuss

0 1838
Q:

What does isNaN function do?

Answer

It Return true if the argument is not a number.

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 1834
Q:

How to create a file on the hard disk by using File class object?

Answer

We can use the following method call:


boolean createNewFile();


This method creates a new file on the HD. 


 


If a file is already existing with the name given in the constructor then this method does not creates file on HD.


If file is successfully created then this method returns true.


If file is already existing on the HD then this method returns false.


This method may throw IOException whenever IO error is generated while creating file on HD.

Report Error

View answer Workspace Report Error Discuss

Subject: Java

0 1833
Q:

What is the difference between JavaScript and Jscript?

Answer

Both JavaScript and Jscript are almost similar. JavaScript was developed by Netscape. Microsoft reverse engineered Javascript and called it JScript.

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 1832
Q:

How many interactive reports did you write?

Answer

In an Interactive Report, user can define maximum 20 secondary lists.

Report Error

View answer Workspace Report Error Discuss

Subject: SAP

0 1831
Q:

What are the different types of system calls?

Answer

The main types of system calls are as follows:


Process Control: These types of system calls are used to control the processes. Some examples are end, abort, load, execute, create process, terminate process etc.


File Management: These types of system calls are used to manage files. Some examples are Create file, delete file, open, close, read, write etc.


Device Management: These types of system calls are used to manage devices. Some examples are Request device, release device, read, write, get device attributes etc.


Information Maintenance: These types of system calls are used to set system data and get process information. Some examples are time, OS parameters, id, time used etc.


Communications: These types of system calls are used to establish a connection. Some examples are send message, received messages, terminate etc

Report Error

View answer Workspace Report Error Discuss

0 1829
Q:

What is the difference between throw and throws clause?

Answer

A throw is used to throw an exception manually, where as throws is used in the case of checked exceptions, to tell the compiler that we haven't  handled the exception, so that the exception will be handled by the calling function.

Report Error

View answer Workspace Report Error Discuss

Subject: Java

0 1828
Q:

As a wholesaler what are the problems you would face in ensuring the commitment to your retail suppliers?

Answer

As a wholesaler, applicant should say that he/she would face production problem, growing consumption, not concentrating on important market segment, scale of operations not being proper, delivery to different stores and having some issues with suppliers and not a good relationship with suppliers. I would face these problems in reaching the target commitment to suppliers as a wholesaler.

Report Error

View answer Workspace Report Error Discuss

Subject: Retail

1 1826