Interview Questions

Q:

Why is it that you cannot overload the scope resolution operator (::)?

Answer

The main reason why the scope resolution operator (::) cannot be overloaded is that only operators that take in values as parameters can be overloaded. The scope resolution operator does not take a value as parameter.

Report Error

View answer Workspace Report Error Discuss

0 1630
Q:

What is the syntax to create the object?

Answer

new ClassName();


This expression creates object in heap area and returns that obj address. Here JVM creates object but JVM does not returns object original address. JVM returns duplicate address, duplicate address is also called as hashcode. 

Report Error

View answer Workspace Report Error Discuss

Subject: Java

0 1630
Q:

What is JDBC Driver ?

Answer

The JDBC Driver provides vendor-specific implementations of the abstract classes provided by the JDBC API. This driver is used to connect to the database.

Report Error

View answer Workspace Report Error Discuss

Subject: Java

0 1629
Q:

What is SVG?

Answer

SVG stands for scalable vector graphics. It’s a text based graphic language which draws images using text, lines, dots etc. This makes it lightweight and renders faster.

Report Error

View answer Workspace Report Error Discuss

0 1628
Q:

What is a Web Worker?

Answer

- A web worker is a JavaScript which runs in the background. It exists in external files. 


 - It is independent of other scripts and does not affect the performance of the page. 


 - Web workers are usually used for CPU intensive tasks.

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 1628
Q:

Define what is Six Sigma?

Answer



Six sigma is a data-driven technique and way for eliminating defects in any progress from product to service and from manufacturing to transactional.


 

Report Error

View answer Workspace Report Error Discuss

Subject: Manufacturing

2 1627
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 1625
Q:

What is the difference between Unix and Windows shared hosting services?

Answer

There are two major platforms that providing hosting and servers to host on. The differences between them are as follows:


- Unix are more efficient in performing offsite and onsite, whereas windows doesn’t provide very good efficiency to work with. 


- Unix provide lower hosting cost for the website using the high bandwidth, whereas windows take more resources and have the cost higher for the storage. 


- Unix is better for the websites that are static and includes HTML and graphics, whereas Windows is used for heavy websites and having more requirements. 


- Unix supports the scripting languages like PHP and databases like MySQL and other related categories, whereas Windows supports IIS, coldfusion and big applications that take more space.

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 1625