Core Java Interview Questions
Questions Answers Views Company eMail

In the below example, what will be the output?

588

What is the default access specifier for variables and methods of a class?

564

What are the two ways of implementing multi-threading in java?

1 808

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

541

How infinite loop is declared?

531

What is default switch case? Give example.

574

What is the difference between double and float variables in java?

631

How are destructors defined in java?

569

In the below example, how many string objects are created?

550

What is ternary operator?

564

Can a class be a super class and a sub-class at the same time? Give example.

1 794

What's the access scope of protected access specifier?

531

I want to re-reach and use an object once it has been garbage collected. How it's possible?

533

How can we pass argument to a function by reference instead of pass by value?

580

Can main() method in java can return any data?

640


Post New Core Java Questions

Un-Answered Questions { Core Java }

What is a method header?

542


What is re-factoring in software?

571


What is method reference?

513


Which class represents the socket that both the client and server use to communicate with each other?

565


Write a program to print count of empty strings in java 8?

534






What are thread safe functions?

506


What is the use of math abs in java?

543


Mention some interfaces implemented by linked list in java.

534


Why Do I Get A "permission Denied" Error After Downloading The .jnlp Java Launcher For The Vkvm?

620


Explain about sets?

565


What is Major and importance difference between for and foreach loop ?

570


Can you declare a private method as static?

688


Difference between predicate, supplier and consumer ?

571


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

576


What will happen if non-synchronized method calls a static synchronized method and what kind of lock it acquires?

511