Sunday, 12 February 2012

What are local variables?

Local varaiables are those which are declared within a block of code like methods. Local variables should be initialised before accessing them.

What is difference between Path and Classpath?

Path and Classpath are operating system level environment variales. Path is used define where the system can find the executables(.exe) files and classpath is used to specify the location .class files.

Are arrays primitive data types?

In Java, Arrays are objects.

Is Java a pure object oriented language?

Java uses primitive data types and hence is not a pure object oriented language.

Does Java support multiple inheritance?

Java doesn't support multiple inheritance.

What is the base class of all classes?

java.lang.Object

What is a pointer and does Java support pointers?

Pointer is a reference handle to a memory location. Improper handling of pointers leads to memory leaks and reliability issues hence Java doesn't support the usage of pointers