Core Java Interview Questions
Questions Answers Views Company eMail

Can we declare the main method of our class as private?

548

What are loops in java? What are three types of loops?

544

What are java packages? What's the significance of packages?

617

In java, how we can disallow serialization of variables?

547

What are loops in java?

546

Why runnable interface is used in java?

564

How garbage collection is done in java?

542

There are two classes named classa and classb. Both classes are in the same package. Can a private member of classa can be accessed by an object of classb?

985

What is the base class in java from which all classes are derived?

510

Can we declare a class as abstract without having any abstract method?

547

Which of the following classes will have more memory allocated?

577

Does importing a package imports its sub-packages as well in java?

545

How objects of a class are created if no constructor is defined in the class?

574

Give an example of use of pointers in java class.

556

I want to persist data of objects for later use. What is the best approach to do so?

587


Post New Core Java Questions

Un-Answered Questions { Core Java }

What is string manipulation?

486


Can we write any code after throw statement?

599


What is the difference between serializable and externalizable interfaces?

565


Explain the importance of finally block in java?

564


What is regex in java?

524






How do you check if two given string are anagrams?

547


What is contractor means and methods?

552


In a program, initializing an array of 100 KB is throwing an out of memory exception while there is 100 MB of memory available. Why?

565


What is are packages?

577


What are the fileinputstream and fileoutputstream?

565


Explain about serializable interface in java?

572


What is integer parseint?

542


what is the major difference between linkedlist and arraylist in java?

544


Can we declare an array without size in java?

514


Difference between character constant and string constant in java ?

549