Suppose a Super Class method throws an exception and this method is Overriden in the subclass with no exception. Now if you create a super class reference that has a subclass object. This throws a compile
Latest Answer: Over Riding means Same methosd names and in the methods having same parameters. ...
What does "wrapping" an object mean?
Latest Answer: When an object A is said to "Wrap" object B, it means that Object A HAS A reference to the Object B and deligates calls to it. ...
How to pass commandline arguments in main function through Eclipse Tools (editors).
Latest Answer: Click the Run menu barNow click the Open Run DialogueA new window will be opened.In that window click the Java applications thenA new sub menu will be opened in that select Arguments menu andType the Arguments with space.Click run to view your result ...
How many methods to read numbers and characters and what should be used.
Latest Answer: methods in InputStream to read byte and in Reader to read character are -int read()int read(byte buffer[])int readIbyte burrer[],int offset,int numBytes) ...
I'm trying to write an Iterator class for a LinkedList class that I wrote.One of the methods is "public E next()"I try to return an "E" but eclipse says "cannot convert from
Latest Answer: Object is a class and E is a generic type parameter . And Iterator class alwayes return Object so to fix this problem, you need to call it. For exampleimport java.util.ArrayList;import java.util.Iterator;class list { ArrayList list = new ...
what is the use of static data member?
Latest Answer: Static data members field (variable) and method belong to class. Static fields can be used before creating an instance of the class and static method can be accessed using class name. ...
I am trying to generate ppt through Java using Apache POI API. I am able to create table, bulleted text etc using this API. Please answer the following two questions, if anyone is aware of this. 1.
Latest Answer: If data contains in the list, try to use two for loops. Or else list element is having the long text, try to use wrap text method, Try to verify POI API. ...
In Real time when we go for Abstract classes and when we go for Interfaces
Latest Answer: If you want to create only abstract methods in a class then use interface and if you want to create some of the methods as abstract and some as concrete then use abstract class. ...
Hi.. I have developed one web-page which shows ALL employee records fetched from a employee table and display them in my JSP page.It has contain more than 1000's of records. I need to display first
Latest Answer: Paging In JSP Page:--------------------------1. Change Your SP which is going to retrieve data by adding 2 more columns CurrentPage,DisplayCount and the usual other Parameters that u have to pass.2. while passing Parameters from Front End ...
Is null a keyword? if not what is it?
Latest Answer: Null is not a keyword but null is reserved literal. null is the default value for instance variable.String str = null;means instance variable str does not hold reference of any object. ...
View page << Previous 1 [2] 3 4 5 6 7 8 9 10 Next >>

Go Top