Core Java Interview Questions
Questions Answers Views Company eMail

Can a class extend abstract class or interface? why

Wipro,

4 8260

What is the difference between Access Modifier and Access specifier?

1 6239

Is it possible to write method inside method

L&T,

4 10032

what is the default value of a variable char?(If not assigned)

4 5945

Write a java program to get a string of words and print the numbers of each word count in descending order

Logica CMG, Subex,

11 27604

Where can I find data structures question and answers with comprehensive working code written in Java

Amazon,

1972

if the memory capacity is 700 presently occupied by process is 690. then another process request space(40) how this situation handled in java.

Wipro,

4 5486

what is the logic inside any default constuctor?

2 3513

How TreeMap sorts the objects inside it?? suppose if have include one employee object and one car object. On what basis it will sort?

5 13149

Java is based on pass by reference or pass by value ..

L&T, Wipro,

6 8992

difference between arraylist and linkedlist otherthan performance

L&T,

2 9389

why pointer is not used in java?

3 10432

what are the difference between Java and .Net?

5 6728

can any body body expalin best definitions & best real time exaples for opps concepts.

Accel,

1837

What is map and hashmap? also tell the difference.

1 3587


Post New Core Java Questions

Un-Answered Questions { Core Java }

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

530


Can we assign the reference to this variable?

545


What is the difference between replace and replace all?

475


What is this () in java?

579


What are 5 boolean operators?

618






How to provide security in java

1805


How can we create a thread in java?

586


What are the drawbacks of singleton class?

536


What is the difference between notify and notifyall method?

616


how a programmer confirms that the data submitted has been succesfully inserted into the database(either oracle or my sql).. How a programmer confirm if there is any problem with the program he wrote for insertion... ANS:--- >executeupdate method is having boolean return type, if anything goes wrong in data insertion or data updation, it would return false. otherwise, if it successfully inserts data into the database, it would return true NOW HOW TO I CHECK IN MY DURING EXECUTION WHETHER IT RETURNS TRUE OR FALSE... WELL IT WILL DISPLAY ANY MESSAGE OR NOT

1852


What is stringwriter?

538


What is the difference between jvm and jre? What is an interface?

553


Java openings 3 - 5 years, Lnt Infotech. requirements - core java, J2ee, struts, hibernate Interview Date:- 19 March 2011 Time:- 9:00 AM to 12:00 Pm Interview Location - L & T Infotech, Manapakkam, Chennai Refererral PS NO:- 291649 (Please mention this when u fill the form only then u will be considered for interview) Documents Required:- Latest Resume, Photograph and last 3 payslips Mail me on vasan2211@gmail.com once u appear for interview

2854


In multi-threading how can we ensure that a resource isn't used by multiple threads simultaneously?

839


You can create a string object as string str = “abc”; why cant a button object be created as button bt = “abc”;? Explain

534