#1
9th May 2016, 10:19 AM
| |||
| |||
HCL Java Interview Questions
Sir I have to give an interview in the HCL company so can you please provide me some of the good Java interview questions so I can prepare well for the exams
|
#2
9th May 2016, 11:21 AM
| |||
| |||
Re: HCL Java Interview Questions
Hey buddy below I am giving you the Java interview questions in HCL you can have a look What are Checked and UnChecked Exception? Can I import same package/class twice? Will the JVM load the package twice at runtime? Do I need to import java.lang package any time? Why ? Can I have multiple main methods in the same class? Can an application have multiple classes having main method? What environment variables do I need to set on my machine in order to be able to run Java programs? How can one prove that the array is not null but empty using one line of code? If I do not provide any arguments on the command line, then the String array of Main method will be empty or null? What is the first argument of the String array in main method? What if I do not provide the String array as the argument to the method? What if I write static public void instead of public static void? What if the static modifier is removed from the signature of the main method? What if the main method is declared as private? What is final? What is static in java? What is an abstract class? What is an Iterator? What is the difference between a constructor and a method? Difference between Vector and ArrayList? What is HashMap and Map? What are pass by reference and passby value? Explain different way of using thread? Describe synchronization in respect to multithreading. What is the purpose of garbage collection in Java, and when is it used? What is the difference between an Interface and an Abstract class? |
|