Core Java Interview Questions
Questions Answers Views Company eMail

What is the purpose of static methods and static variables?

775

What are java packages?

819

What are the performance implications of interfaces over abstract classes?

1 3298

How can you generate random numbers in java?

810

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

1027

How can an exception be thrown manually by a programmer?

743

How we can execute any code even before main method?

815

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

784

Why strings in java are called as immutable?

788

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

733

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

801

How can we use primitive data types as objects?

753

Can variables be used in java without initialization?

819

What is an infinite loop?

2 803

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

802


Post New Core Java Questions

Un-Answered Questions { Core Java }

What is the inheritance?

750


What is covariant return type?

876


Can the interface be final?

778


Give us a program to check for parenthesis matching using stack.

769


Explain implementation and how is it different from conversion?

819


Can we make main() thread as daemon?

849


What’s a deadlock?

867


Can we increase array size dynamically in java?

726


Difference between error and exception

5503


How do you control extraneous variables?

694


What is an interface in java? Explain

832


Is jdk required on each machine to run a java program?

1029


make a method which any number and any type of argument and print sum of that arguments.....

1598


Which collection allows duplicate values in java?

757


Does treeset allow null in java?

729