Java General - Virtual Functions in Java
Interview Question Database For Software Developers
|
|
| Virtual Functions in Java | | Can you have virtual functions in Java? | | By: FYIcenter | 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.
| | ID: 80 | Rank: 1571 | Votes: 0 | Views: 358 | Submitted: 20070303 |
1528 :-) | | Clone of Map Objects | | Jack developed a program by using a Map container to
hold key/value pairs.
He wanted to make a change to the map. He decided to
make a clone of the map in order
to ... | | Submitted: 20070303 |
|
1523 :-) | | Runable Interface and Thread | | What is more advisable to create a thread, by
implementing a Runnable interface or by extending
Thread class?... | | Submitted: 20070303 |
|
Copyright © 2010 FYIcenter.com
All rights in the contents of this Website are reserved by the individual author.
No part of the contents may be reproduced in any form without author's permission.
|
|
|