Saturday, November 7, 2015

Getting Ready for Technical Interviews - 2

Today I am going to continue previous post (Getting Ready for Technical Interviews - 1) by adding more key areas related to technical interviews.

Debugging 

Programming errors called bugs. The process of tracking bugs down and correcting them is called debugging.

Why java is called platform independent ? 

Because translating a program into byte code instead of machine code. So it makes easier to run a program in a wide variety of environments, because only JVM needs ti be implemented for each platform. Although the details of the JVM will differ from platform to platform, all understand the same java byte code.

What do you mean by platform independent ?

We can write and compile the java source code in one platform (e.g. Windows) and can execute the class file in any other supported platform (e.g. Linux, Solaris etc)

Pointers

It is a reference which can be used to handle a memory location. Improper handling of pointers leads to memory leaks and reliability issues. Hence java doesn't support the usage of pointers.

Base class of all java classes ?

java.lang.Object

Just-In-Time Compiler (JIT) with java

It is used to improve the performance. JIT compiles parts of the byte code that have similar functionality at the same time and hence reduces the amount of time needed for compilation.

Previous                                                                                         Next



No comments:

Post a Comment