Core Java Interview Questions
Questions Answers Views Company eMail

String is an immutable object. Then how can the following code be justified. String s1 = ?ABC?; String s1 = s1+?XYZ?; s.o.p(s1); The output is ABCXYZ, which is the value of s1 ?

Flextronics, Keane India Ltd,

6 15859

Instead of writing Home, Remote Interfaces if i directly extends EJBObject to bean class what happens?

Flextronics,

1 4432

when we write class.forName("any one class"); what happens actually?what it will return?explain stepwise?

6 7593

explain System.out.println

Calpine Technologies, Care, Cognizant, CTS, IBM, IBS, LibSys, Oracle, Spiro Solutions, TCS,

107 176556

What is the use of Getters and Setters method ?

4 15249

What is hard code & soft code?

Cognizant, Wipro,

7 58208

jdbc drivers?

Wipro,

8 13269

Can we declare an anonymous class as both extending a class and implementing an interface?

College School Exams Tests, JVA, TCS, Wipro,

8 15979

what is difference Between Core Java and advance java

HCL, HP, Sambalpur University, TCS, Vensai Technologies, Wipro,

60 162346

how cani read a command line argument?(usingfile object).

3 5347

what is the use/perpose of having a method antive?

2 4383

when asub class inherits a super class and overrides a public method of super class in sub class(public method in super class). why these methods needs to be public in sub class. (otherwise compile time error).

3 5418

what is the difference between statis block and static variable

7 9197

Can we call the Thread.sleep in Synchyronozed block?

Logica CMG,

5 17588

how can we use the servlet as standalone apllication?should we need to extend any class?

Logica CMG,

2 6369


Post New Core Java Questions

Un-Answered Questions { Core Java }

When do we use hashset over treeset?

522


What are the special characters?

526


What is static data type in java?

528


What is the difference between choice and list?

582


Why lambda expression is used in java?

559






What is an immutable class? How to create an immutable class?

527


What are 3 data types?

534


What does super keyword do?

548


What is indexof in java?

505


Which programming language is best in future?

512


What is the difference between break and continue statements?

539


What is visibility mode?

519


What is generics in java interview questions?

531


What do you understand by an io stream?

569


How many times finalize method will be invoked? Who invokes finalize() method in java?

564