Core Java Interview Questions
Questions Answers Views Company eMail

Can we use a default constructor of a class even if an explicit constructor is defined?

836

What's the purpose of static methods and static variables?

783

What is the difference between comparison done by equals method and == operator?

765

When the constructor of a class is invoked?

760

What is ternary operator? Give an example.

787

How an object is serialized in java?

726

When we should use serialization?

770

What's the base class of all exception classes?

771

In multi-threading how can we ensure that a resource isn't used by multiple threads simultaneously?

1071

What are the two environment variables that must be set in order to run any java programs?

712

What is the access scope of protected access specifier?

731

A person says that he compiled a java class successfully without even having a main method in it? Is it possible?

800

What's the purpose of using break in each case of switch statement?

723

What are java packages? What is the significance of packages?

750

What is final keyword in java? Give an example.

759


Post New Core Java Questions

Un-Answered Questions { Core Java }

Is null an object java?

733


When arithmeticexception is thrown?

781


Can we increase array size dynamically in java?

702


What happens if we don’t define serial version uid?

758


How does singleton class work?

730


State the difference between strings and arrays.

836


What is the purpose of void class?

796


Can we declare a class as static?

783


How many bits are in a sentence?

786


What is the difference between final, finally and finalize()?

762


What is deserialization?

791


What do you mean by mnemonics?

740


If goto and const is reserve words than why it is not work in java?

1738


Describe 2 different ways to concatenate two strings.

882


What is application tier?

761