KyaPoocha.com

Huge Collection of Interview Questions


Archive for December, 2006

What is method overloading and method overriding? 

Method Overloading: When a method in a class having the same method name with different arguments is said to be method overloading. Method Overriding: When a method... Read more »

What is finalize() method? 

finalize() method is used just before an object is destroyed and can be called just prior to garbage collection.  Read more »

Questions to Ask during an HR Interview. 

It is always tricky when HR at the end of the interview says “Is there anything you would like to ask me?” So friends please ask some questions because... Read more »

What is the difference between md5(), crc32() and sha1() crypto on PHP? 

All these functions generate a hash code and the basic difference among them is the length of the generated hash. crc32() gives 32 bit code sha1() gives 128 bit... Read more »

What is the difference between htmlentities() and htmlspecialchars()? 

htmlspecialchars only takes care of , single quote, double quote and ampersand whereas htmlentities translates all occurrences of character sequences that have some... Read more »

Explain the difference between echo, print and printf. 

echo, print and printf are used for printing strings but the basic difference between them is: echo is the most primitive of them, and just outputs the contents... Read more »

How do I find out the number of parameters passed into function? 

func_num_args() function returns the number of parameters passed in.  Read more »

What is the difference between include and require? 

The basic difference is how they handle failures. If the file is not found by require(), it will cause a fatal error and halt the execution of the script. If the... Read more »

What are Unicode characters? 

Unicode is used for internal representation of characters and strings and it uses 16 bits to represent each other.  Read more »

What is final, finalize() and finally? 

final : final keyword can be used for class, method and variables. A final class cannot be subclassed and it prevents other programmers from subclassing a secure... Read more »

What are different types of access modifiers in Java? 

Public: Any thing declared as public can be accessed from anywhere. Private: Any thing declared as private can’t be seen outside of its class. Protected: Any thing... Read more »

How many ways can an argument be passed to a subroutine? 

An argument can be passed in two ways. They are Pass by Value and Passing by Reference. Passing by value: This method copies the value of an argument into the formal... Read more »

What is the use of “bin” and “lib” in JDK? 

“bin” contains all tools such as javac, appletviewer, awt tool, etc. whereas “lib” contains API and all packages.  Read more »

What is the difference between procedural and object-oriented programs? 

1. In procedural program, programming logic follows certain procedures and the instructions are executed one after another. In OOP program, unit of program is object,... Read more »

Which file contains the definition of member functions? 

Definitions of member functions for the Linked List class are contained in the LinkedList.cpp file.  Read more »

Page 2 of 5«12345»