When we extends class then what comes default
class base
void one()throws IOException
class derived extends base
void one()
when derived class override the function of one of base class then why it not give errror ?
Oh, is that what you're asking--why the child class doesn't have to declare that it throws the exception? If that's what you're asking...
The child has to honor its parent's contracts. When the parent's method declares throws IOException, it's not promising that it does throw that exception. Rather, it is promising that it won't throw any exception except that one (and unchecked exceptions--RuntimeException, Error, and their descendants).
Since the parent promises not to throw any checked exception other than IOException, the child must also not throw any other checked exception. For instance, the child can't throw SQLException. However the child is free to not throw the exception--that doesn't violate the contract, because the parent isn't promising to throw that exception.
Similar Messages
-
I have added a song to replace the Revolution's theme music. Is ther a way to set a specific section of the song to play instead of the entire song?
Not with iTunes. If you want a specific part of a track you should edit a copy of the track with a 3rd party audio editor to leave just the portion you want. Then import that clip into iTunes and use in iDVD.
OT -
Inherit / extend class calls constructor...
Hi,
Class A extends class B like so:
public class A extends B{}
Why is class B's constructor called? I thought when A extends
B, A gets all of B's methods and variables, great; but I don't need
the constructor called because class B has already been created. I
just want class A to inherit all of B's methods and variables. Can
a class have two constructors, so when I extend class B an empty
constructor is called but when I instantiate it the constructor
with code is called?
I feel like I’m missing something here.
Thanks,
4dplaneYep you are missing something. :)
The constructor is just that -- it builds each instance of
the class, puts it together if you will. Without a call to the
superclass's constructor you won't get all its properties, methods,
etc.
You'll notice that the B constructor is even call first. That
is to make sure that everything is ready and accessable to A
It sounds like whatever you are trying to do isn't really a
good candidate for extension.. Fill us in a bit more and perhaps we
can come up with some ideas.. -
How to check Licence and what comes with original cd?
Hello DBA,
how to check licence in installed oracle database?
and if we purchase oracle database from oracle then what comes with the kit(like original cd and other things)?
Thanks,
DBAHi Nikunj,
Licensing information are not stored in the database but you can get list of components installed using the query below:
select COMP_NAME, VERSION, status from dba_registry;
I hope this is what you are looking for?
Cheers,
Adams -
Hi,
I have this situation: Say that I am RDP to a Windows server 2008 at least. I noticed that when I have an RDP session and I stopped working (idle) but still logged in, then I come back to it, the RDP session goes away as if I just got kicked out.
However, when I logged in again, I'm back to my session.
I looked at my GPO and I don't have anything set that relates to Terminal Session.
What is it and how do I fix this so I don't get kicked out?Yes, set it to 1. You do not want to set it to 15 minutes or longer because that will most likely not fix the issue you are seeing. NAT Firewall timeouts are the most frequent cause of this issue,
and they are often set to 10-15-20 minutes by default.
I forget exactly, but I think in practice it will actually be 5 minute intervals when it is set to 1. The reason I said what I did is I didn't want to tell you it means minutes (which is what it means) and then you test it and realize that it is not
sending the keep alives at 1 minute intervals. If I remember correctly you can get lower by setting it to other intervals, for example, setting it to 2 would actually be more frequent than setting it to 1, but because I have noticed it stop working when
using the other intervals I recommend you set it to 1, which is the default.
Additionally, the exact behavior of the keep-alive may vary depending on the precise version, service pack, hotfixes that you are running.
The above is the longer explanation. Again I recommend you enable it and leave it at default of 1 and make sure to restart your server so the change takes effect.
-TP -
I am changing from Word to Pages. I have created my custom template with all my styles etc and that is what comes up when I go for a New Document. Fine. How do I get it to use the same Custom Template when I use Pages to open a Word document?
The template is a document in itself, it is not applied to an existing document whether it is a Pages document or a Word document converted to a Pages document.
You would need to either copy and paste content, using existing styles, or apply the styles to the converted Word document.
You can Import the Styles from an existing document and those imported Styles can be used to override the current document's styles:
Menu > Format > Import Styles
The process is simplified if the styles use the same names, otherwise you will need to delete the style you don't want and replace it with the one that you do want when asked, then the substitution is pretty straightforward.
Peter -
when i download software, then go to the download window and click on the program , i'am being ask to choose a launch program. how do i figure out what app to use to install. ex: i downloaded a new version of java and a game program. how do i install?
Where did you download the java?
Download it from here [https://www.java.com/en/download/index.jsp https://www.java.com/en/download/index.jsp] -
My iPad 4 wifi 3G keeps charging slowly takes half a hour to get to 15% when plug into the wall with the plug and the lead what come with the iPad just wondering as I think some thing is wrong with the iPad
Using the battery level meter in this manner is comparable to using your car's fuel gauge to calculate miles per gallon. The only thing that matters is the total amount of operating time from full charge to auto-shutdown.
Use the wall-mount charger that came with the iPad and charge overnight. Do NOT use an iPod/iPhone charger. Do NOT use a computer's USB port. Then, operate it normally until auto shut-down (ignore any low level alerts that may appear). An irony is that doing that test to determine the total operating time is also the procedure necessary to calibrate the battery level meter.
I'm not claiming that you do not have a problem. I am stating, however, that we don't yet know. If the above test does, in fact, indicate a problem, read this.
Also, according to Apple:
Use Your iPad Regularly
For proper reporting of the battery’s state of charge, be sure to go through at least one charge cycle per month (charging the battery to 100% and then completely running it down).
Elsewhere, Apple elaborates and explains that two half-discharges (or four quarter-discharges, etc.) equals one full discharge. -
Revision: 11139
Author: [email protected]
Date: 2009-10-26 03:02:38 -0700 (Mon, 26 Oct 2009)
Log Message:
Extending class with a 'processLoadingState' stub, invoked when load state is set to LOADING.
Modified Paths:
osmf/trunk/framework/MediaFramework/org/osmf/media/LoadableMediaElement.asStrobe was used to verify that the problem was not with my OSMF implementation. Since the results were the same, I am more supsicious of OSMF itself or the underlying AIR framework than the player implementation. Either way, the information I've seen says that progressive download of h.264 video is supported on mobile devices with AIR. It would appear that this is not true in all cases.
The issue has not been observed on not occur on the desktop. It only occurs with StageVideo enabled playback with autoplay on.
In the actual product the videos play one at a time. Once the user has finished with a video, the player clears the references to the media. These are OSMF calls; the media assigned to the player is nulled. If this is not sufficient for garbage collection, then I am at a loss as to how to proceed. My test uses four videos that are roughly 1 MB. If there is a memory use problem, then it would appear something is broken in AIR or OSMF.
I want to be sure I report this correctly. The code involved is more than a snippet, it's a media player designed to be embedded in an app. Do I need to include the complete implementation or will a description be sufficient? -
HI,
I've been having trouble with ( IE) Internet Explorer 11 version:(11.0.9600.17207IS )-(KB2962872) for over a year on my desktop with ANZ Internet banking, when i go into this website, it freezes and comes up" Anz isn't responding"
and then inside of icon comes up "Recover Webpage" so I click that and then it comes up"Windows is checking for a solution to the problem" and then closes down.
But on my laptop I have no trouble with Anz and it has a different version:(11.0.9600.17207).
Can some one tell me what the IS is on the end of the first version mean and how can I install the version without the IS on end of number on my desktop, as this version is causing the problem.
I have been in Microsoft Community with Yaqub Khan-Microsoft Support Engineer and he recommend me come here, as we have done many steps without problem fixed.
Do you know how I can copy that info from there to here, so you can see the steps we have already done, or can you go in there and see.
Thanks
Brewythanks Brewy,
I thought you were Mark..... and were
using a MS internal network....(Brewy responce)-Sorry about that, that was a quote from
Mark in this section in someone's thread and answers Microsoft gave me
instructions how to get into this section, so since its the first time, was
quite sure how to go about it)
I have a vodaphone usb stick also....
they use geotracking and inject code into pages, but I don't have any problems
accessing the site form either a mobile connection or an adsl public access
network.
Do you have both your ADSL and USB
stick connected? (BREWY)-I have only one connected at one time and this has been
the case for some years without a problem, until early last
year.)
What anti-virus software and version
are you running... Is it a trial or subscribed and up to date version. You
should use only one Anti-virus product and completely uninstall any AV products
that came with your PC purchase that you do not purchase. (BREWY)-I have had
Microsoft Security Essentials-(MSE) and have had AVG and didnt fix anything.
I've got MSE also on laptop with no problems.)
Does you PC have finger print
recognition... is it turned on?( I don't have this function.)
If you do not want to pursue the
problem any further, you can uninstall the Windows update
(Windows>Update>View Installed Updates) and remove that KB update, and
wait until the IETeam or Windows teams release the next update. However, not
every body is being impacted by that update item... the cause is more likely to
be your computer's configuration and third party software that you have
installed. (I've uninstalled/installed IE11 about 6 times to see if it hasn't
configured properly and problem consist, it would be good if there was a program
to see diagnose exactly what the problem is. If I could get the version without
the (IS)on the end, it should fix the problem, its just trying to find out what
installed update will take it back to the IE11 version on my
laptop.)
these are peer to peer support forums.
We do not work for nor represent MS. This forum is for
Questions regarding Internet Explorer
8, 9 and 10 and Internet Explorer 11 for the IT Pro Audience. Topics covered
are: Installation, Deployment, Configuration, Security, Group Policy, Management
questions. If you are a consumer looking for answers or to raise a question,
it's highly recommended you head on over to answer. Microsoft.com(I was firstly on answers Microsoft
for a few weeks and they recommended me come to TechNet.)
Regards.
Rob^_^ -
What do I need to do to get my cannon camera to upload pictures into iPad . When I plug it in system comes up connected USB device is not supported?
Use the camera's SD card instead.
Another way. You can use a USB flash drive & the camera connection kit.
Plug the USB flash drive into your computer & create a new folder titled DCIM. Then put your movie/photo files into the folder. The files must have a filename with exactly 8 characters long (no spaces) plus the file extension (i.e., my-movie.mov; DSCN0164.jpg).
Now plug the flash drive into the iPad using the camera connection kit. Open the Photos app, the movie/photo files should appear & you can import. (You can not export using the camera connection kit.)
Secrets of the iPad Camera Connection Kit
http://howto.cnet.com/8301-11310_39-57401068-285/secrets-of-the-ipad-camera-conn ection-kit/
Cheers, Tom -
What will happen when SGA_TARGET is more then SGA_MAX
Hi,
Can any one tell me what will happen when SGA_TARGET is more then SGA_MAX
if this situation happens either SGA_TARGET will resize to SGA_MAX or SGA_MAX resize to SGA_TARGET or error will come ? ??
thanks
Jagadeesh.Can any one tell me what will happen when SGA_TARGET is more then SGA_MAX
if this situation happens either SGA_TARGET will resize to SGA_MAX or SGA_MAX resize to SGA_TARGET or error will come ? ??Here is the ERROR
SQL> startup
ORA-00823: Specified value of sga_target greater than sga_max_size
SQL> -
Oh! Then what I want to do is change the default font on my email, documents etc. How do I do that?
Hi stom353,
If you would like to change the fonts in Mail, you may find the following article helpful (the font options are located under menu bar item Mail => Preferences => Fonts & Colors):
Mail (Mavericks): Fonts & Colors preferences
http://support.apple.com/kb/PH14863
Regards,
- Brenden -
i cant download apps throgh wifi on my iphone however when i connect to cellular data it starts downloading. then what is wrong over wifi , i tried reset network setting but i didnt help
Definitely sounds like an issue with your Wi-Fi network. Do any other devices on the network have similar issues? Is it an issue only with downloading apps? You can check by trying to load a website in Safari.
I would try turning your Wi-Fi router off for 1 minute, and back on again.
After doing that, disconnect and re-join the Wi-Fi network on your iPhone and try downloading an app again. -
when turning my ipad on it comes up with passcode, when i try to enter it it wont accept. so i cannot get any further. the only thing i did was i was just messing and i turned on voiceover, then i tryed to turn it of and it wouldnt let me. i have tryed turning the ipad of and then turning it back on and that didnt work either. please help ....
It's hard to see exactly how just turning voiceover on would have created a passcode, but regardless of that ... if you can't get it sorted so that you can enter whatever the code is, you're going to have to resort to Restoring the iPad from the computer it was last sync'ed to.
Maybe you are looking for
-
Why Hp does not find any solution for Noisy Fan systems ?
I got DV6t core i5 6gb ram + 1gb Ati Radeon Graphic Card (6490m) + bluetooth + Bluray I have to return it because of that noisy fan ; i was a new member of Hp family and i never investigate about that product for Laptop. After it got that gorgeous
-
Browser Shut-down using "Log off" link
When a user selects "Log off" in EBP the system displays a page which reads: "End of Session Thank you fro working with the Internet Transaction Server". Does anyone know how to close this window automatically (requiring no user intervention). We a
-
Can The ASM Disk Header and Disk Group Be Renamed?
I have a requirement to mount multiple SAN clones (EMC Symclone) of a production ASM instance on the same development server. RMAN is too slow to be an option, unless I find a white paper explaining any way to make RMAN perform a clone faster than th
-
Hello All, I am creating the public holidays for the year 2009 and assigned to holiday calendar. When I try to open any material in MD04 it is throwing the below message. Issues is very vital please respond. Invalid factory calendar or error in the f
-
Hi Guys I am using Oracle form 10G and I want to use a jar file that can allow me to modify the look of some items. I copied the jar file in /forms/java directory and update my formsweb.cfg file by adding archive_jinit=frmjar,...myJar.jar. But when I