Interview Questions

Q:

What is the difference between method overriding and overloading?

Answer

Overriding is a method with the same name and arguments as in a parent, whereas overloading is the same method name but different arguments

Report Error

View answer Workspace Report Error Discuss

Subject: Java

0 1625
Q:

When should I use abstract classes and when should I use interfaces?

Answer

Use Interfaces when…


- You see that something in your design will change frequently.


- If various implementations only share method signatures then it is better to use Interfaces.


- You need some classes to use some methods which you don't want to be included in the class, then you go for the interface, which makes it easy to just implement and make use of the methods defined in the interface.


 


Use Abstract Class when…


- If various implementations are of the same kind and use common behavior or status then abstract class is better to use.


- When you want to provide a generalized form of abstraction and leave the implementation task with the inheriting subclass.


- Abstract classes are an excellent way to create planned inheritance hierarchies. They're also a good choice for nonleaf classes in class hierarchies.

Report Error

View answer Workspace Report Error Discuss

Subject: Java

0 1624
Q:

What are Microsoft security patches?

Answer

Microsoft security patches are intended to solve certain security loopholes and problems, while at the same time upgrading any existing security features. This would provide better protection by reducing vulnerabilities in security.

Report Error

View answer Workspace Report Error Discuss

0 1624
Q:

What would be the most important service skill that you would need to have in your day to day business?

Answer



1.Patience:If you deal with clients on a daily basis, be certain to stay patient when they come to you confused and frustrated, but also be clear to take the time to truly find out what they need — they'd rather get good service than be rushed out the door!


2. Attentiveness: The capacity to surely listen to customers is so crucial for presenting extremely good service for a number of reasons.


3.Communication Skills: When it comes to crucial points that you want to relay clearly to customers, keep it easy and leave not anything to doubt.


4.Knowledge of the Product: Not knowing your product from front-to-back, you might not know how to solve customer issues when they run into problems.


5.Willingness to Learn: Those who don't show to enhance skills what they do, whether it's helping customers, marketing businesses, or building products, will get left behind by the people willing to put money into their skills.


6.Ability to Use "Positive Language":


    Without positive language: "I cannot get you that product until next month; it is back-ordered and unavailable presently."


    With positive language: "That brand will be available coming month. I can place the order for you immediately and make sure that it is posted to you as soon as it reaches our war


 


 

Report Error

View answer Workspace Report Error Discuss

0 1623
Q:

Write a program to fix the error being produced by the Infinite file?

Answer

- The infinite file error can be solved when the data will be read continuously from the file. 


- The error can be solved by using the keys that provide only the resources that are required. 


- The following program is as follows:


osw.write ("HTTP/1.0 200 OK\n\n"); 


while (c != -1) { 


sb.append((char)c); 


c = fr.read(); 



osw.write (sb.toString()); 


- This converts the requested file in such a way that if the file exists it shows the messages as ok otherwise it shows an error.


- Limited file access is to be given to the file to remove the error from the infinite file type.

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 1622
Q:

What are the different new form element types in HTML 5?

Answer

These are the new form elements introduced in HTML 5:


Color


Date


Datetime-local


Email


Time


Url


Range


Telephone


Number


Search

Report Error

View answer Workspace Report Error Discuss

0 1619
Q:

What is web application?

Answer

Web application provides services (Free and Paid) apart from information.


Ex: Online Banking System


It provides Bank  information , Branches & ATM information, Loans information etc...


And It provides balance enquiry, Fund transfer, Bill payments like services.

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 1619
Q:

What is the use of FOR XML in SQL Server?

Answer

SQL Server is having a fantastic feature to retrieve data persisted in the form of XML format. The data in the XML format can be retrieved using FOR XML clause appending to the SELECT statement.


It offers 3 modes.


- “FOR XML AUTO": Returns XML elements that are nested, based on which tables are listed in the "from" part of the query, and which fields are listed in the "select" part.


- "FOR XML RAW": Returns XML elements with the "row" prefix (ex: ""). Each column in a table is represented as an attribute and null column values aren't included.


- "FOR XML EXPLICIT": Explicit mode is the most complex shaping method used in SQL Server 2000. It allows users to query a data source in such a way that the names and values of the returned XML are specified before the query batch is executed. 

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 1616