Core Java Interview Questions
Questions Answers Views Company eMail

How can you make sure that your singleton class will always return single instance in multi-threaded environment?

572

Difference between static synchronization vs. Instance synchronization?

564

Explain numeric promotion?

598

What is contract between hashcode and equal method?

572

If you do not want your class to be inherited by any other class. What would you do?

563

What is java’s garbage collected heap?

536

What is re-factoring in software?

576

What is static synchronization?

575

What is annotation in java?

576

What are static methods?

576

What is a map? What are the implementations of map?

564

Which package is imported by default?

636

What are the restrictions imposed on method overriding?

554

What is hash code collision?

592

What do you mean by order of precedence and associativity?

546


Post New Core Java Questions

Un-Answered Questions { Core Java }

What are the states of thread in java?

514


Can vector have duplicates in java?

508


What comes to mind when someone mentions a shallow copy in java?

659


How can we create a synchronized collection from given collection?

584


How does varargs work in java?

611






What is method reference in java?

563


What is a Presistent Object?

645


What are the differences between path and classpath variables?

493


What are the types of strings?

564


What are the disadvantages of object oriented programming?

600


2) Suppose there are 5 directories having lot of files (say txt files) in each directory. 2 things :- 2.1) You want to search for filenames which have a particular pattern. 2.2) Out of these filtered files you want to search for a particular keyword or a search string. How can you achieve this?

1838


What is module with example?

514


Define locale.

588


What is the purpose of checked and unchecked exceptions in JAVA?

568


Why does java have two ways to create child threads?

466