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?

644

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

586

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

566

When the constructor of a class is invoked?

582

What is ternary operator? Give an example.

589

How an object is serialized in java?

522

When we should use serialization?

558

What's the base class of all exception classes?

559

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

829

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

521

What is the access scope of protected access specifier?

531

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

577

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

501

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

561

What is final keyword in java? Give an example.

574


Post New Core Java Questions

Un-Answered Questions { Core Java }

Is string serializable in java?

538


How do you sort arraylist in descending order?

570


What is the significance of continue jump statement? Explain with an example.

736


What is string data?

548


Why static functions are used?

561






what is thread? What are the high-level thread states? Or what are the states associated in the thread? : Java thread

490


What is the purpose of the strictfp keyword?

605


What is Major and importance difference between for and foreach loop ?

568


How does class forname work in java?

475


Which collection is ordered in java?

527


What is the synonym of procedure?

526


What are operators and its types?

567


What is the difference between math floor and math round?

493


What are constants and how to create constants in java?

551


What is the concatenation operator in java?

570