Interview Question


Country: -




Comment hidden because of low score. Click to expand.
1
of 1 vote

Oh Come On Guys ... Its they who are judging you.. Let them know what you know.. and what is correct... if I get the very basic or stupid question in any interview.. regardless of my expertise.. I would give my answer and if possible with added flavour of my experience regarding why is that so........

So, its always suggested to answer the concepts of inheritance, polymorphism and Encapsulation in Java and how is being achieved to make Java an Object Oriented for this question.

- hprem991 November 03, 2011 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

I second hprem991

Java is Object oriented

1) Inheritance : It supports inheritance
2) Encapsulation : support through access modifier
3) Polymorphism : through method overloading and method overriding

- Anonymous November 03, 2011 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

who said 'c' doesnt support all these 3?it does.u just need to figure out how to implement them using srtuctures,header files etc..so is it object-oriented as well? i personally believe the only difference is java comes with a huge api

- Anonymous November 04, 2011 | Flag
Comment hidden because of low score. Click to expand.
1
of 1 vote

i don't think java is 100% OO. Primitives are still there in java.

- Praveen January 14, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

Correct. Similar to C++ the JAVA language is a hybrid-OOL. There are only a few pure OOL out there such as Smalltalk.

- pete May 06, 2012 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

Because it's object-oriented :)

- eugene.yarovoi November 03, 2011 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

If you want to ask what property of a language actually makes a language object-oriented, that's a bit of a philosophical question, in my opinion.

I was actually asked a ridiculous question along these lines in an interview today. I was asked "Name the 3 basic tenets of object-oriented programming." I proceeded to argue that the only thing that makes a language truly object-oriented is polymorphism (LSP). My interviewer chose to disagree but did not treat this as a matter of opinion.

- eugene.yarovoi November 03, 2011 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

I think they will maybe looking for
1. Encapsulation
2. Abstraction
3. Inheritance

- Amol November 09, 2011 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

java is defined as purely object oriented language due to its properties like encapsulation,inheritance and abstraction
encapsulation: the main class is is defined inside the class with acess specifiers and modifiers
inheritance: it has a concept of interface which helps to solve multiple inheritance concept
and primitive data types can be solved using type wrappers
and it is very much helpful in web applications ,gui etc
which are defined using objects

- rockstar January 20, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Why java called as a object oriented programming?

- Mini baduni September 14, 2017 | Flag Reply


Add a Comment
Name:

Writing Code? Surround your code with {{{ and }}} to preserve whitespace.

Books

is a comprehensive book on getting a job at a top tech company, while focuses on dev interviews and does this for PMs.

Learn More

Videos

CareerCup's interview videos give you a real-life look at technical interviews. In these unscripted videos, watch how other candidates handle tough questions and how the interviewer thinks about their performance.

Learn More

Resume Review

Most engineers make critical mistakes on their resumes -- we can fix your resume with our custom resume review service. And, we use fellow engineers as our resume reviewers, so you can be sure that we "get" what you're saying.

Learn More

Mock Interviews

Our Mock Interviews will be conducted "in character" just like a real interview, and can focus on whatever topics you want. All our interviewers have worked for Microsoft, Google or Amazon, you know you'll get a true-to-life experience.

Learn More