-
-
-
-
-
-
-
-
-
-
-
Inheritance and Aggregation
What is the difference between inheritance and aggregation? When would you use one over the other
-
Can HashMap store null values?If yes, how many?
Can HashMap store null values?If yes, how many?What is singleton class? Give one example.Please describe the difference between 'int' and 'Integer',what is the purpose of 'Integer', where should we use 'Integer' vs 'int'?
-
Java Program to Count Number of Files
50,000 HTML files are in a folder on a windows machine. Among them, content of some files(not the file names) contain the sentence "SocioMaC-Jus' Follow!". Write a Java program to count the number of such files.
-
Class Path
Why should we set class path and path environment variables while installing J2SE and why not while Turbo C?
-
Double Value
What happens when you add a double value to a String?
-
Java Collection
What is the default capacity and load factor in Java Collection? Explain its role.
-
Interface and Abstract Class Usage
When will you use an interface and abstract class?
-
Write a program that prompts the user to input three numbers.
The program should then output numbers in ascending order.
-
Compareto and equals method
Difference between CompareTo and equals method.
-
JUnit
What is JUnit and how it is used?
Java Interview Questions
Ans