Interview Questions

Q:

What are pass by reference and pass by value ?

Answer

When an object is passed by value, this means that a copy of the object is passed. Thus, even if changes are made to that object, it doesn’t affect the original value. 


When an object is passed by reference, this means that the actual object is not passed, rather a reference of the object is passed. Thus, any changes made by the external method, are also reflected in all places.

Report Error

View answer Workspace Report Error Discuss

Subject: Java

0 2345
Q:

Why an app on iOS device behaves differently when running in foreground than in background?

Answer

An application behaves differently when running in foreground than in background because of the limitation of resources on iOS devices.

Report Error

View answer Workspace Report Error Discuss

1 2345
Q:

What is PHP?

Answer

PHP: Hypertext Preprocessor is open source server-side scripting language that is widely used for web development. PHP scripts are executed on the server. PHP allows writing dynamically generated web pages efficiently and quickly. The syntax is mostly borrowed from C, Java and perl. PHP is free to download and use.


 

Report Error

View answer Workspace Report Error Discuss

Subject: PHP

0 2345
Q:

What is the difference between creating String as new() and literal ?

Answer

When we create string with new() Operator, it’s created in heap and not added into string pool while String created using literal are created in String pool itself which exists in PermGen area of heap.



String s = new String("Test");

does not put the object in String pool , we need to call String.intern() method which is used to put them into String pool explicitly. its only when you create String object as String literal e.g. String s = "Test" Java automatically put that into String pool.

Report Error

View answer Workspace Report Error Discuss

1 2344
Q:

Define and explain COM?

Answer

COM is the component Object Model is a system whch creates application which are binary form that is language independent , object oriented ,modular and reusable .

Report Error

View answer Workspace Report Error Discuss

0 2344
Q:

What do you accomplish by GROUP BY ... HAVING clause?

Answer

GROUP BY partitions the selected rows on the distinct values of the column on which you group by. HAVING selects GROUPs which match the criteria specified

Report Error

View answer Workspace Report Error Discuss

0 2344
Q:

HTML 5 provides drag and drop facility. How do you make an image draggable?

Answer

To make an image draggable, the draggable attribute is set to true:


<img draggable="true">

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 2344
Q:

What do you mean by multiple inheritance in C++ ?

Answer

Multiple inheritance is a feature in C++ by which one class can be of different types. Say class teaching Assistant is inherited from two classes say teacher and Student.

Report Error

View answer Workspace Report Error Discuss

Subject: C++

0 2344