Interview Questions

Q:

What are Native methods in Java?

Answer

Java applications can call code written in C, C++, or assembler. This is sometimes done for performance and sometimes to access the underlying host operating system or GUI API using the JNI.


 


The steps for doing that are:


First write the Java code and compile it


Then create a C header file


Create C stubs file


Write the C code


Create shared code library (or DLL)


Run application

Report Error

View answer Workspace Report Error Discuss

Subject: Java

0 1794
Q:

How do you traverse through a collection using its Iterator?

Answer

To use an iterator to traverse through the contents of a collection, follow these steps:


- Obtain an iterator to the start of the collection by calling the collections iterator() method.


- Set up a loop that makes a call to hasNext(). Have the loop iterate as long as hasNext() returns true.


- Within the loop, obtain each element by calling next().

Report Error

View answer Workspace Report Error Discuss

Subject: Java

0 1794
Q:

Explain how to create users through SQL PLUS.

Answer

We need to first login to the data base as: SQLPLUS followed by user_name/password. Then we need to execute the following query:


CREATE USER user_name IDENTIFIED BY abcd; in this query a user_name suggest the user that is created which has a password abcd which is required for login in database.

Report Error

View answer Workspace Report Error Discuss

Subject: Oracle

0 1794
Q:

A decline in the real interest rate will

A) shift the investment schedule downward B) shift the investment schedule leftward
C) increase the amount of investment spending D) None of the above
 
Answer & Explanation Answer: C) increase the amount of investment spending

Explanation:

The real interest rate is the percentage increase in purchasing power that the lender receives on a loan. A decline in the real interest rate will increase the amount of investment spending.

Report Error

View Answer Report Error Discuss

Filed Under: Bank Interview
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Analyst , Bank Clerk , Bank PO

0 1791
Q:

What are the Advantages of PL/SQL?

Answer

- Because of the block nature, multiple statements are processed at once thereby improving performance. 


- PL/SQL handles exceptions on catching which, action can be taken. 


- PL/SQL is highly portable as it works with all procedural languages and is highly secured because of privileges.


 

Report Error

View answer Workspace Report Error Discuss

Subject: Oracle

0 1789
Q:

How to set breakpoints?

Answer

Setting up the break points:



  1.  Go to the line where you need to mark the breakpoint.

  2.  Click with mouse on left corner margin of that line.

  3.  Another way is to press F9

Report Error

View answer Workspace Report Error Discuss

Subject: .NET

0 1786
Q:

Can Manual Testing be completely replaced by Automation Testing?

Answer

Automated testing cannot replace manual testing because of following reason:


 


- Automated testing cannot replace the analytical skills required to conduct testing. It can only enhance or supplement manual testing,


- Through manual testing, information can be gathered about the application, and real-time decisions can be made about how to enhance a test that would be too difficult to program into an automated script.


- We need a manual tester to analyze and maintain the automated scripts after they can run.

Report Error

View answer Workspace Report Error Discuss

Subject: QA Testing

0 1785
Q:

What are the main objectives of industrial relations system?

Answer

The main objectives of an Industrial relations system are: 


- To protect the interest of employees and employers by building up a congenial relationship. 


- To avoid the human conflicts which can harm the business, the employees and the economic growth of the country.


- To increase the productivity. 


- To improve the economic conditions of the workers


- To reduce the number of industrial disputes like strikes, lock outs etc.

Report Error

View answer Workspace Report Error Discuss

Subject: Law

2 1784