Interview Questions

Q:

why overriding finalize() method?

Answer

If constructor opens the file 


finalize() method closes that file.


 


If constructor opens the connection 


finalize() method closes that connection.


 


To perform finalization operation we must overriding finalize method.

Report Error

View answer Workspace Report Error Discuss

Subject: Java

0 2095
Q:

What are the LMHOSTS files?

Answer

The LMHOSTS file is a static method of resolving NetBIOS names to IP addresses in the same way that the HOSTS file is a static method of resolving domain names into IP addresses. An LMHOSTS file is a text file that maps NetBIOS names to IP addresses; it must be manually configured and updated.

Report Error

View answer Workspace Report Error Discuss

0 2095
Q:

What is static initializer block? What is its use?

Answer

A static initializer block is a block of code that declares with the static keyword. It normally contains the block of code that must execute at the time of class loading. The static initializer block will execute only once at the time of loading the class only.

Report Error

View answer Workspace Report Error Discuss

Subject: Java

0 2094
Q:

Explain the process of creating a context menu using the ContextMenu component

Answer

ContextMenu component provides the users with the ability to access some very frequently used commands. Context menu works by right click of mouse. They mainly provide access to commands particular to the control that has been clicked upon.

Report Error

View answer Workspace Report Error Discuss

Subject: .NET

0 2090
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 2089
Q:

What are the main attributes of test automation?

Answer

The main attributes are discussed below:


 


Maintainability: For each new release need to update the test automation suites.


Reliability: Accuracy and repeatability of the test automation.


Flexibility: Ease of working with all the different kinds of automation test ware. 


Efficiency: Total cost related to the effort needed for the automation.


Portability: Ability of the automated test to run on different environments.


Robustness: Effectiveness of automation on an unstable or rapidly changing system. 


Usability: Extent to which automation can be used by different types of user.

Report Error

View answer Workspace Report Error Discuss

Subject: QA Testing

0 2087
Q:

What Are Your Goals?

Answer

Sometimes it's best to talk about short-term and intermediate goals rather than locking yourself into the distant future. For example, "My immediate goal is to get a job in a growth-oriented company. My long-term goal will depend on where the company goes. I hope to eventually grow into a position of responsibility."

Report Error

View answer Workspace Report Error Discuss

4 2087
Q:

What is the SimpleTimeZone class?

Answer

SimpleTimeZone is a concrete subclass of TimeZone class. The TimeZone class represents a time zone, that is to be used with Gregorian calendar.


The SimpleTimeZone is created by using the base time zone offset from GMT time zone ID and rules, for starting and ending the time of daylight.

Report Error

View answer Workspace Report Error Discuss

Subject: Java

0 2086