Technology Questions

Q:

What is Auto boxing and unboxing?

Answer

Autoboxing is the process of converting a primitive type data into its corresponding wrapper class object instance.


Example:


Integer number = new Integer (100); // number is now refers to the object 100


 


Unboxing is the process of converting a wrapper instance into a primitive type.


Example: 


Integer number = new Integer (100); 


int num = number;// without type casting number would be changed into int type

Report Error

View answer Workspace Report Error Discuss

Subject: Java

0 1914
Q:

When does the SQL statement gets executed when you use cursor in the application programming?

Answer

SQL statement gets executed when we open cursor


 

Report Error

View answer Workspace Report Error Discuss

0 1913
Q:

What is session storage and how can you create one?

Answer

Session storage is same like local storage but the data is valid for a session. In simple words the data is deleted as soon as you close the browser.


To create a session storage you need to use “sessionStorage.variablename” . In the below code we have a created a variable called as “clickcount”.


If you refresh the browser the count increases. But if you close the browser and start again the “clickcount” variable starts from zero.


if(sessionStorage.clickcount)


{


sessionStorage.clickcount=Number(sessionStorage.clickcount)+1;


}


else


{


sessionStorage.clickcount = 0;


Report Error

View answer Workspace Report Error Discuss

1 1913
Q:

What is Thread ?

Answer

A thread is a lightweight subprocess, a smallest unit of processing. It is a separate path of execution. It shares the memory area of process.



As shown in the above figure, thread is executed inside the process. There is context-switching between the threads. There can be multiple processes inside the OS and one process can have multiple threads.

Report Error

View answer Workspace Report Error Discuss

Subject: Java

0 1913
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 1913
Q:

What is the use of overloading ? or why overloading?

Answer

By using overloading we can add new functionality to the sub class.

Report Error

View answer Workspace Report Error Discuss

Subject: Java

0 1909
Q:

What are the advantages and disadvantages of using views in ABAP programming ?

Answer

advantages: view is used to retrieve the data very fastly from the database tables
* memory wastage is reduced
* faster than joins to retrieve the data from database tables



disadvantages:
* view is not a container,it will not hold the data
* view memory is not permanent memory

Report Error

View answer Workspace Report Error Discuss

Subject: ABAP

0 1908
Q:

What is FDM?

Answer

FDM is an analog technique that can be applied when the bandwidth of a link is greater than the combined bandwidths of the signals to be transmitted.

Report Error

View answer Workspace Report Error Discuss

0 1907