java is pure object oriented or not?
Answers were Sorted based on User's Feedback
Answer / vish
Yes, Java is completely object oriented...! OOPS principle says that data should control the code that in java happens, while in procedural languages code control the data.
Even the primitive datatypes in java like int are represented in object, see wrapper classes.
Finally its follow, all OOPS principal, like Encapsulation, Polymorphism and Inheritance.
| Is This Answer Correct ? | 5 Yes | 1 No |
Answer / anjireddy
Yes, Java is completely object oriented..
Because data should control the code...
Finally all oops principal, Like Encapsulation, polymorphism, Data Abstraction and Inheritance
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / nithi
Java is not pure object oriented language.It have primitive data types. the pure object oriented language is the one which uses all the concepts of oops and use objects.but in the other case when the java uses wrapper classes for primitive data types, it will use everything as class and objects and become pure object oriented language..
| Is This Answer Correct ? | 1 Yes | 1 No |
Answer / pks
java is not an pure oops language, because it support primitive data type. such as int, byte,long..
| Is This Answer Correct ? | 0 Yes | 0 No |
List different ways of empty an array in javascript?
i want to display time using hidden variable in a page,but when i click button that page that hidden variable loosing its value.i m sending the code also. <script type="text/javascript" language="javascript"> var tick=0; window.onload = function() { //debugger if(document.getElementById("hdnTicker").value != "") tick = parseInt(document.getElementById("hdnTicker").value); setInterval("Timer()",1000); } function Timer() { //debugger document.getElementById("hdnTicker").value = tick++; //alert(document.getElementById("hdnTicker").value); document.getElementById("lblTimeSpent").innerHTML = "0." + tick; if(tick == 30) { //message or redirect to result window alert('time is out'); //clearTimeout(); } } </script> <form id="form1" runat="server"> <div> <table> <tr> <td> <asp:Label ID="lblTimeSpent" runat="server" Visible="true" ForeColor="Blue" ></asp:Label> </td> <td> <%-- <asp:textbox EnableViewState="true" id="hdnTicker" runat="Server" style="visibility:hidden"></asp:textbox>--%> </td> </tr> <tr> <td> <asp:Button ID="btn" runat="server" Text="hi" OnClick="btn_Click" Height="30px" Width="60px" /> </td> </tr> </table> <%--<asp:HiddenField ID="txt" runat="server" Visible="true" />--%> </div> </form> <input type="hidden" id="hdnTicker" name="hdnTicker" enableviewstate="true" runat="server" />
How do I run code in browser console?
Is javascript harmful?
Does javascript support automatic type conversion?
Explain function hoisting in javascript?
What is external javascript?
How do I add a javascript event handler to an html page element?
Does javascript support automatic type conversion, if yes give example.
What is the concept of “functions as objects” and how does this affect variable scope?
How to detect the OS on the client machine in JavaScript?
How to create an input box?