Core Java Interview Questions
Questions Answers Views Company eMail

What is the purpose of static methods and static variables?

755

What are java packages?

804

What are the performance implications of interfaces over abstract classes?

1 3265

How can you generate random numbers in java?

783

When a lot of changes are required in data, which one should be a preference to be used? String or stringbuffer?

1011

How can an exception be thrown manually by a programmer?

731

How we can execute any code even before main method?

775

Can we call a non-static method from inside a static method?

779

Why strings in java are called as immutable?

770

What is the difference between an inner class and a sub-class?

721

Is it compulsory for a try block to be followed by a catch block in java for exception handling?

782

How can we use primitive data types as objects?

734

Can variables be used in java without initialization?

793

What is an infinite loop?

2 782

What is an infinite loop? How infinite loop is declared?

791


Post New Core Java Questions

Un-Answered Questions { Core Java }

What is the difference between the final method and abstract method?

780


What does i ++ mean in Java?

708


what is function overloading in java?

952


What is final access modifier in java?

824


What is the final access modifier in java?

818


how to create multithreaded program? Explain different ways of using thread? : Java thread

741


What do you understand by looping in java? Explain the different types of loops.

796


Can we create our own wrapper class in java?

745


What is var keyword ?

927


How can an exception be thrown manually by a programmer?

731


Is this valid in java ? Can we instantiate interface in java?

756


How does queue work in java?

719


Why is java multithreaded?

739


What is a wrapper method?

761


How objects are stored in java?

757