Archive for the Category: Java

NVIDIA Software Tools Development Engineer Interview Questions for Fresjers

nvidia

1: A train running at the speed of 54 km/hr completely crosses a platform in 20 seconds. If the platforms is 100 m long the length of the train in metres is a) 100 (b) 200 (c) 300 (d) 400

Also posted in Fresher Interview Questions Tagged , , , Leave a comment

Shriram Value Services Software Trainee Interview Questions for Freshers and Experienced

Shriram Value

1) Dinesh travelled 1200 km by air which formed 2/5 of his trip. One third of the whole trip, he travelled by car and the rest of the journey he performed by train. What was the distance travelled by train? 1. 600Km 2. 700Km 3. 800Km 4. 900Km

Also posted in ASP.Net, Fresher Interview Questions Tagged , , , Leave a comment

Hewlett-Packard Interview Questions for freshers

images

1. A train passes a station platform in 36 seconds and a man standing on the platform in 20 seconds. If the speed of the train is 54 km /hr , what is the length of the platform? a) 240 m b) 120 m c ) 300 m d) None of these Answer : a

Also posted in Fresher Interview Questions Tagged , Comments Off

What is a Java package and how is it used?

A Java package is a naming context for classes and interfaces. A package is used to create a separate name space for groups of classes and interfaces. Packages are also used to organize related classes and interfaces into a single API unit and to control accessibility to these classes and interfaces.

Tagged , Comments Off

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.

Tagged , , Comments Off

Are JVM’s platform independent?

JVM’s are not platform independent. JVM’s are platform specific run time implementation provided by the vendor.

Tagged , Comments Off

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.

Tagged , Comments Off

What is the difference between a JDK and a JVM?

JDK is Java Development Kit which is for development purpose and it includes execution environment also. But JVM is purely a run time environment and hence you will not be able to compile your source files using a JVM.

Tagged , , Comments Off

Can I have multiple main methods in the same class?

No the program fails to compile. The compiler says that the main method is already defined in the class.

Leave a comment

Can you write a Java class that could be used both as an applet as well as an application?

Yes. Add a main() method to the applet.

Leave a comment