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?

657

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

600

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

576

When the constructor of a class is invoked?

597

What is ternary operator? Give an example.

603

How an object is serialized in java?

534

When we should use serialization?

572

What's the base class of all exception classes?

569

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

843

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

535

What is the access scope of protected access specifier?

540

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

586

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

514

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

575

What is final keyword in java? Give an example.

580


Post New Core Java Questions

Un-Answered Questions { Core Java }

How do you read and print a string in java?

530


What is unmodifiable list in java?

536


What is the difference between overriding & overloading?

567


What are thread local variables?

558


What is character in data type?

553






why Interface used?

541


Difference between final and effectively final ?

641


Can I declare class as static or private?

547


How many tetrahedral voids are there in bcc?

549


How can we access some class in another class in java?

555


What are the different ways of implementing thread? Which one is more advantageous?

540


How variables are declared?

519


What are the basic concepts of OOPS in java?

570


explain autoboxing in java?

598


What is the meaning of immutable regarding string?

524