Core Java Interview Questions
Questions Answers Views Company eMail

What is the purpose of static methods and static variables?

519

What are java packages?

557

What are the performance implications of interfaces over abstract classes?

1 2843

How can you generate random numbers in java?

564

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

730

How can an exception be thrown manually by a programmer?

484

How we can execute any code even before main method?

523

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

539

Why strings in java are called as immutable?

564

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

485

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

569

How can we use primitive data types as objects?

537

Can variables be used in java without initialization?

531

What is an infinite loop?

521

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

544


Post New Core Java Questions

Un-Answered Questions { Core Java }

What is the difference between menuitem and checkboxmenu item?

742


what is predefined function in java?

523


Can we override final method?

537


what are the states associated in the thread? : Java thread

563


What is the purpose of extern variable?

509






What is purpose of keyword void?

541


How to retrieve data from database in java using arraylist?

505


What is a dynamic array java?

489


What is parameter example?

517


Why is whitespace important?

524


What is the difference between static and non-static variables in java programming?

492


What is defined as false sharing in the context of multithreading?

481


What is the syntax and characteristics of a lambda expression?

535


How do you use find and replace?

482


What are different type of exceptions in java?

525