Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...

Core Java Interview Questions
Questions Answers Views Company eMail

Can we instantiate Interfaces?

Ericsson,

7 11483

What do you mean by the term transient?

Ericsson,

5 7562

What are the two ways you can synchronize a block of code?

Ericsson,

5 10573

Package1 and Package2 both have a method name lets say "methodA" with different implementation. When I import both the packages in a java class how can I use both the methods?

Ericsson,

7 7384

How can you sort dates?

TCS,

2 7263

Why to give the file name same as the public class name in java?

3 4818

Is there any use of an abstract class which has no methods and no attributes?

Wipro,

1 3584

If your team member writes code with lots of static variables and static methods, will it cause any side effects?

KPIT,

3 5097

If I have 1000 objects and my requirement is to sort them quickly, then which collection would you recommend and why?

KPIT,

5 5616

I have a Person object with 5 variables and I want to store them in a file called Person.txt. What should I do?

KPIT,

3 4516

There is a Banking application. It has 2 types of account, Savings and Current. Write a method calculateInterest by passing an ArrayList of these account objects and calculate Interest accordingly. Write code for this situation

ABC, KPIT,

1 1926

If two threads call a static method at the same point of time, what will happen?

KPIT,

3 6387

There are 2 methods in a class. Both have the same method signature except for return types. Is this overloading or overriding or what is it?

KPIT,

9 8475

There are 2 classes, 1 LandAnimal and another WaterAnimal. There is another class Animal which wants to have the properties of both LandAnimal and WaterAnimal. How will you design this situation?

KPIT,

6 7204

I have a String s = java; What is the output when I say s.replaceAll('j', 'k'); Also what is the value of s after replacing?

KPIT,

8 7072


Post New Core Java Questions






Un-Answered Questions { Core Java }

What does method mean?

135


What is unicode full form?

125


What is the difference between import java.util.date and java .util?

174


String and stringbuffer both represent string objects. Can we compare string and stringbuffer in java?

171


What is java regex?

147






Can we create object of static class?

136


Explain about the performance aspects of core java?

186


How will you reverse a link list without using recursion?

206


What is ascii format?

143


What is a null check?

135


What are predicates in java 8?

130


What is a platform?

166


Are functions objects in java?

138


Why packages are used?

170


How do you use compareto?

145