virtual function

Ads

 
 

Share on Google+Share on Google+

samar
virtual function
1 Answer(s)      7 years ago
Posted in : Java Interview Questions
can we have virtual functions in java?
Ads
View Answers

October 29, 2010 at 5:46 PM


Hi,

Here is the answer,

Yes, all functions in Java are virtual by default. This is actually a pseudo trick question because the word "virtual" is not part of the naming convention in Java (as it is in C++, C-sharp and VB.NET), so this would be a foreign concept for someone who has only coded in Java. Virtual functions or virtual methods are functions or methods that will be redefined in derived classes.

Thanks.


Ads









Related Tutorials/Questions & Answers:
virtual function
virtual function  Explain virtual functions in Java
virtual function
virtual function  can we have virtual functions in java
Advertisements
virtual world
virtual world  i want a program like consider 10 * 10 array. first we are in the middle i.e 5 * 5 position . we have to ask the user that in which direction he is interested to move.i.e east or west or north or south. the output
function
function  difference between function overloading and operator overloading
Uninstall Oracle Virtual Box
Uninstall Oracle Virtual Box  Hi, Is there any video of uninstalling Oracle Virtual Box? Thanks
java virtual machine
java virtual machine  please give some detail about JVM
Java Virtual Machine
Java Virtual Machine  What is Java Virtual Machine? Are JVM different for each OS? Thanks   Hello, JVM or Java Virtual Machine is run... more at Java Virtual Machine Technology. Thanks
Non-virtual Methods in Java - java tutorials
methods, a virtual function is function whose behavior can not be overridden by inheriting the class. In C++ programming you can make a function virtual... The better way to achieve the non-virtual function in java is that make all
Virtual Fuction invokation in java
Virtual Fuction invokation in java  Please help me. If i have create a Employee class,which is the super class of Manager. And I create an object... is virtual method in java?Please explain
Virtual Fuction invokation in java
Virtual Fuction invokation in java  Please help me. If i have create a Employee class,which is the super class of Manager. And I create an object... is virtual method in java?Please explain
Java Virtual Machine Technology
Java Virtual Machine Technology Java development kit termed as  JDK have more than one implementation of the JVM. Java HotSpot Client VM also termed.... This is the Virtual machine implementation comes with JDK.It is basically designed to cut
virtual on screen keyboar - Swing AWT
virtual on screen keyboar  sir i need shift key operation code in my project program of virtual keyboard can uplz send
Java Virtual Machine
Java Virtual Machine       In this section, you will learn about the java virtual machine (JVM) and how to work? Java Virtual Machine (JVM) Java Virtual Machine is a set of computer
Ho to get virtual key code.
Ho to get virtual key code.  Hi How to get virtual key code from button.I made on screen keyboard.But it not proper work for windows ,shift,alt and ctrl key. pls suggest me
What is Virtual Appliance?
We are already habituated and prepared to see everything virtual and ephemeral... is presented by this emerging tech environment called as virtual appliance or virtual appliance integrated ecosystem as it is also referred combining its
How to display windows virtual keyboard
How to display windows virtual keyboard  Hi, I have a jsp file which contains my website design. In my jsp website design, there's a button. I need to display windows virtual keyboard when i press the button. how to do
Why Virtual Dedicated Hosting?
Why Virtual Dedicated Hosting? These days Virtual Dedicated Hosting has become cheap and many hosting companies provides the Virtual Dedicated servers. In this article I will explain why you should choose Virtual Dedicated Web
Virtual Hosting
In case of Virtual Web hosting same computer (server) is used to host..., it is much economical to run the Virtual Web hosting server for the clients. This article is introducing you about the Virtual Web hosting. There are many
Java Virtual Machine
Java Virtual Machine The Java Virtual Machine is a software package that comes with the JRE or JDK. It is a virtual machine which is responsible for running... on Linux and vice versa. JVM - Execution Environment JVM or Java Virtual Machine
Virtual Private Servers
Virtual Private Servers A Virtual Private Server or VPS for short is also know as Virtual Dedicated Server (VDS). Virtual Private Servers is many servers... of a dedicated server to many customers as low cost. In case of Virtual Private Server
Java Virtual Machine Free Download
Java Virtual Machine Free Download       The Java Virtual Machine is required to run your java program in your computer. The Java Virtual Machine software is freely downloadable from
Java Virtual Machine Free Download
Java Virtual Machine Free Download       Java Virtual Machine Free Download The Java Virtual Machine is required to run your java program in your computer. The Java Virtual
What do you understand by Virtual Hosting?
What do you understand by Virtual Hosting?  What do you understand by Virtual Hosting? I am trying to find the hosting server provider but don't know about the hosting terms. Just explain me about Virtual Hosting. Thanks  
virtual on screen keyboard project - Swing AWT
virtual on screen keyboard project  Hi im doing my project work on virtual onscreen keyboard. i want the code for key function of shift and capslock.please send me the code   Hi Friend, For CapsLock key,try
isNaN function
isNaN function  What does isNaN function do
function addValue
function addValue  i have question about the javascript the function addvalue script is working to add some name but is not save on the html so please resolve my problem what can i do for addvalue function will be to save
function addValue
function addValue  i have question about the javascript the function addvalue script is working to add some name but is not save on the html so please resolve my problem what can i do for addvalue function will be to save
function addValue
function addValue  i have question about the javascript the function addvalue script is working to add some name but is not save on the html so please resolve my problem what can i do for addvalue function will be to save
If function in PHP
If function in PHP  Hi, Provide me the example of If function in PHP. Thanks   Hi, If function is PHP is used to check for some condition and the execute a block of code. He is an example of if() function in PHP
Calling a function
Calling a function  Hi, I have a function xyz() in php code. When a button is clicked it should execute that particular function for that i have... function function xyz() { } but this is not working can u tell me
function method
function method  input Rs. 12000 Discount= 10%, 8% = Rs.(12000-1200) = Rs.(10800-864) = Rs. 9936

Ads

 
Advertisement null

Ads