Im new to java and hope somebody can help me with my question
Hi!
Im quite new to java and I just have some simple questions..
can someone please tell what kinds of error are considered as language violation for java? where can I find more info about these errors?
can someone give me a simple example on a kind of error that cannot be caught in both compilation and runtime? I hope someone can help me out. Thanks in advance!!
knightz211 wrote:
Im just asking about errors that might go against the language definition but cant be detected.. If it "goes against the language defintion," it will be detected by the compiler. That's half of the compiler's job is to tell you what you've done that violates the language spec.
because it confuses me when they say that such errors might occur so I just want to know what might these errors be.. sorry for that..Who's "they"? What exactly* did "they" say about "such errors"? It sounds to me like you're just confused, and you think there's something mysterious and inexplicable going on but you don't know what and don't even know what you're asking.
I would suggest not worrying about hypothetical problems that you can't even put into words and focussing on learning Java. Along the way, if you encounter real, specific, actual problems, ask about them, and you'll probably get answers about the problems themselves and the language or theory behind them.
Similar Messages
-
Hi hope somebody can help? i have acrobat 6 pro, worked well for last two years but then just stopped working. Have reinstalled but still will not open, ronning windows 7. Help please!! Janice
Hey janicem42177174,
Adobe no longer supports the installation and use of Acrobat 6 as it is a very old version which is not compatible with Windows 7.
I would suggest you to please use the latest version of Acrobat i.e. 11.0.10 which is fully compatible with your OS with its enhanced features and functions.
You might download a free 30-day trial version of Acrobat from here:
Download Adobe Acrobat free trial | Acrobat XI Professional
Let me know how it goes
Regards,
Anubha -
My iPhone stolen and I download find my iPhone on it also I can sea it online but I can't locate it so please help me .. What should I do . I heard apple support can activate the GBS and send it to my e_mail . So I hope they can help me with that ...
Best wishes ..
<Email Edited by Host>These are user-to-user forums, I've asked the hosts to remove your email address from your post.
Apple and/or iTunes support can't locate it for you, only you can potentially locate it via http://icloud.com on a computer or Find My iPhone / Find My iPad on another device - but that will only work if it's connected to a network and the device hasn't already been wiped and/or Find My iPhone disabled on it.
If it was stolen then you should report it to the police. You should also change your iTunes account password, your email account passwords, and any passwords that you'd stored on websites/emails/notes etc. -
I have 2 problems I hope someone can help me with.
As the title says, I problems I hope someone can help me with as I don't know who else to ask for this.
1. I tried to pre-order Dying Light for the Xbox One and during checkout the system cancelled my order saying that the store stock had been spoken for. However, I went in once the game released to the same store and was able to purchase the game no problem so in effect I just missed out on my $10 pre-order certificate.I wanted to pre-order but it wouldn't let me - I have never seen this error before.
2. I took advantage of the $39.99 12+1 month Xbox Live Gold gift card you had on sale yesterday. Only the Halo one was abailable at my local store so I ordered 2 of those for pickup. I got home and used the cards and it was only for 12 months not 12+1 as it still says on the website here:
http://www.bestbuy.com/site/searchpage.jsp?st=3878002,+8972116&_dyncharset=UTF-8&id=pcat17071&type=p...
Is there a way to get the extra month advertized?
Thank you!
Solved!
Go to Solution.Hello also_nadrag,
Thanks for writing in, and thanks too for being a My Best Buy member. We appreciate your loyalty. I'll be happy to talk to you about your recent online experiences.
From the sound of things you may have waited too long to attempt a pre-order for in-store pickup for Dying Light. As the order was not able to be processed, I'm afraid we will not be issuing the $10 certificate.
The product description on the Xbox Live Halo card is incorrect in labeling this item as including 1 extra month. As the image online and packaging indicates, this card has an extra bonus for Halo: The Master Chief Collection. We have reported the description error and I hope it is corrected soon. I am sorry for any confusion this may have caused.
Please visit us any time with questions or concerns.
Sincerely,
Mike|Social Media Specialist | Best Buy® Corporate
Private Message -
hi, i can't see anymore the subtitle when i watching a movie on my iPad, somebody can help me with that ?
As has been discussed on these forums thousands of times, Adobe does not make a flash player for iphone/ipad/ipod and likely never will.
You can do a forum search and find countless posts on this. -
Hi I hope somebody can help me.
i had an iphone which was locked to 3 network in UK. after unlocking through network provider, i gave it to my brother to use in india. But unfortunately its not picking up any network availiable in india. When i checked in internet it shows that the phone is unlocked; but the problem persists. he has all the network sims availiabe in my state. I hope somebody can get me out of this trouble..
Could well be that the phone was not unlocked. I would contact 3 http://www.three.co.uk/Store/Phones/iPhone
Failing that you could contact Apple and ask them if the phone has been unlocked
https://expresslane.apple.com/Issues.action -
Is there really no one who can help me with my question postet 3 days ago!?
I have a problem with blurry images after publishing -Am I really the only one who thinks this is a big problem -I tried to get some help 3 days ago? Is there other forums that can help me on this topic?
It looks fine in iweb, but not in the browser after publishing... I'ts only with small logo images with hard graphichs in jpeg, its not my compression, it looks fine before publishing...dear wyodor, I thought that I explained my problem all right in my post? well,
when I put a logo in the corner of my site -in my case a jpg file with some text, it looks good in iweb, but after publishing its not possible to read the small text because of the way iweb compress photos - my question is -can I do anything to keep the jpeg-compression i made i photoshop? Is there no way in iweb to control the compression? Its really frustrating -and the only really problem I have with iweb
se how my logo looks im my site:
http://web.mac.com/pierrienevoldsen/24x36.dk/om_24x36.dk.html
I have the same logo twice now just to check different advises, but still its impossible to read the small lettes -but not in iweb -
My Preview opens all my pics at time instead of open one by one. It occurs when I open any JPG FILE. What should I do to fix it? Thanks
First use JPanel not Panel.
Panel panels[]=new Panel[4];becomes
JPanel panels[]=new JPanel[4];Then refactor your code so that you use arrays correctly:
panels=new Panel();
panels.setLayout(new FlowLayout(FlowLayout.LEFT));becomes
panels=new JPanel();
panels[i].setLayout(new FlowLayout(FlowLayout.LEFT));
I did the above changes to your code and it worked fine.
Dave -
Hello all
i'm a first time user with java...my editor is Visual J++ (trial ed)...i'm testing out java to see if i want to use this for my company. for the past 4 days i've been trying to figure out how to connect to a database (i'm using MS SQL SERVER 2K) i've already posted in the JDBC Fourm...but found no answer...I apologize if I'm posting in 2 different forums at same time...but you gotta feel me on this, over 4 days on just trying to connect is not healthy LOL....
I already downloaded the driver from MS. Installed it followed the user guide (acrobat pdf file) on how to implement it...but i'm still stuck and haven't reached no where....what i want to do is a simple select statement but i can't do that without connecting first....maybe one of you out there has a sample code who uses MS SQL SERVER 2K...or someone can just be a miracle and help out on my code....the code will be attached below
import java.awt.*;
import java.awt.event.*;
import java.sql.*;
public class AccessApp extends Frame
TextField driver = new TextField(80);
TextField url = new TextField(80);
TextField sql = new TextField(80);
Button doIt = new Button("Do it!");
TextArea resultArea = new TextArea(10,60);
public static void main(String args[])
AccessApp app = new AccessApp();
public AccessApp()
super("AccessApp");
setup();
pack();
addWindowListener(new WindowEventHandler());
show();
void setup()
setupMenuBar();
setLayout(new GridLayout(2,1));
Panel topPanel = new Panel();
topPanel.setLayout(new GridLayout(4,1));
Panel panels[]=new Panel[4];
for(int i=0;i<panels.length;++i)
panels=new Panel();
panels[i].setLayout(new FlowLayout(FlowLayout.LEFT));
panels[0].add(new Label("Driver:"));
panels[0].add(driver);
panels[1].add(new Label("URL: "));
panels[1].add(url);
panels[2].add(new Label("SQL: "));
panels[2].add(sql);
doIt.addActionListener(new ButtonHandler());
panels[3].add(doIt);
for(int i=0; i<panels.length; ++i)
topPanel.add(panels[i]);
add(topPanel);
add(resultArea);
void setupMenuBar()
MenuBar menuBar = new MenuBar();
Menu fileMenu = new Menu("File");
MenuItem fileExit = new MenuItem("Exit");
fileExit.addActionListener(new MenuItemHandler());
fileMenu.add(fileExit);
menuBar.add(fileMenu);
setMenuBar(menuBar);
void accessDB()
try
Class.forName(driver.getText()).newInstance();
Connection connection=DriverManager.getConnection(url.getText());
Statement statement = connection.createStatement();
boolean hasResults = statement.execute(sql.getText());
if(hasResults)
ResultSet result = statement.getResultSet();
if(result!=null) displayResults(result);
else resultArea.setText("");
connection.close();
catch(Exception ex)
resultArea.setText(ex.toString());
void displayResults(ResultSet r) throws SQLException
ResultSetMetaData rmeta = r.getMetaData();
int numColumns=rmeta.getColumnCount();
String text="";
for(int i=1; i<=numColumns; ++i)
if(i<numColumns)
text+=rmeta.getColumnName(i)+" | ";
else
text+=rmeta.getColumnName(i);
text+="\n";
while(r.next())
for(int i=1;i<=numColumns;++i)
if(i<numColumns)
text+=r.getString(i)+" | ";
else
text+=r.getString(i).trim();
text+="\n";
resultArea.setText(text);
class ButtonHandler implements ActionListener
public void actionPerformed(ActionEvent ev)
String s=ev.getActionCommand();
if(s=="Do it!") accessDB();
class MenuItemHandler implements ActionListener
public void actionPerformed(ActionEvent ev)
String s=ev.getActionCommand();
if(s=="Exit")
System.exit(0);
class WindowEventHandler extends WindowAdapter
public void windowClosing(WindowEvent e)
System.exit(0);
I hope this helps
and hopefully someone will respondFirst use JPanel not Panel.
Panel panels[]=new Panel[4];becomes
JPanel panels[]=new JPanel[4];Then refactor your code so that you use arrays correctly:
panels=new Panel();
panels.setLayout(new FlowLayout(FlowLayout.LEFT));becomes
panels=new JPanel();
panels[i].setLayout(new FlowLayout(FlowLayout.LEFT));
I did the above changes to your code and it worked fine.
Dave -
pleasehelp me
no i did not yet give it back to apple store , actually this is the second day, im here in dubai right now so by tomorrow i go back to let them see this,, i just observe maybe i can fix it tru itunes in my laptop.. but until now.. every time i plug it in in my laptop, the blue color always comes out..
-
Somebody can help me with that error Anonymous UUID: 43EC623D-B4BA-414C-8392-031744EEFAD9
I suddenly just turned off the screen and turn off the screen when I turn on the computerI get this error message someone could help me
THANK YOU....
Anonymous UUID: 43EC623D-B4BA-414C-8392-031744EEFAD9
Wed Jan 25 12:11:46 2012
panic(cpu 0 caller 0xffffff7f8099800b): NVRM[0/1:0:0]: Read Error 0x00000100: CFG 0xffffffff 0xffffffff 0xffffffff, BAR0 0xc0000000 0xffffff80a0501000 0x0a5480a2, D0, P3/4
Backtrace (CPU 0), Frame : Return Address
0xffffff807c933b10 : 0xffffff8000220702
0xffffff807c933b90 : 0xffffff7f8099800b
0xffffff807c933c20 : 0xffffff7f80a88120
0xffffff807c933c70 : 0xffffff7f80a881e0
0xffffff807c933cd0 : 0xffffff7f80d34749
0xffffff807c933e10 : 0xffffff7f80aa7269
0xffffff807c933e40 : 0xffffff7f809a196e
0xffffff807c933ef0 : 0xffffff8000639966
0xffffff807c933f30 : 0xffffff80006386e0
0xffffff807c933f70 : 0xffffff8000638584
0xffffff807c933fb0 : 0xffffff8000820057
Kernel Extensions in backtrace:
com.apple.NVDAResman(7.1.4)[71EBC846-807C-386D-8D01-E144A87FAC0F]@0xffffff7f809 37000->0xffffff7f80c10fff
dependency: com.apple.iokit.IOPCIFamily(2.6.7)[6D54F06A-46B7-37FC-AF22-DE68DC18A1A3]@0xffff ff7f808c2000
dependency: com.apple.iokit.IONDRVSupport(2.3.2)[6517D9A6-58F5-3CFC-B021-C882306150D5]@0xff ffff7f80925000
dependency: com.apple.iokit.IOGraphicsFamily(2.3.2)[55FF26D3-292D-3B4B-8AB7-1D25C8B4313B]@0 xffffff7f808ed000
com.apple.nvidia.nv50hal(7.1.4)[A44D0B74-5A18-34D5-842C-4E280365F55F]@0xffffff7 f80c11000->0xffffff7f80f32fff
dependency: com.apple.NVDAResman(7.1.4)[71EBC846-807C-386D-8D01-E144A87FAC0F]@0xffffff7f809 37000
BSD process name corresponding to current thread: kernel_task
Boot args: debug=0x144
Mac OS version:
11C74
Kernel version:
Darwin Kernel Version 11.2.0: Tue Aug 9 20:54:00 PDT 2011; root:xnu-1699.24.8~1/RELEASE_X86_64
Kernel UUID: 59275DFA-10C0-30B3-9E26-F7B5DFB1A432
System model name: MacBookPro6,2 (Mac-F22586C8)
System uptime in nanoseconds: 2108895577706
last loaded kext at 1813872868318: com.apple.iokit.IOAVBFamily 1.0.0d22 (addr 0xffffff7f807d0000, size 36864)
last unloaded kext at 1934592053399: com.apple.iokit.IOAVBFamily 1.0.0d22 (addr 0xffffff7f807d0000, size 36864)
loaded kexts:
com.hzsystems.terminus.driver 4
net.telestream.driver.TelestreamAudio 1.0.5
com.globaldelight.driver.BoomDevice 1.1
com.apple.driver.AppleHWSensor 1.9.4d0
com.apple.filesystems.autofs 3.0
com.apple.driver.AppleMikeyHIDDriver 122
com.apple.driver.AudioAUUC 1.59
com.apple.driver.AppleHDA 2.1.3f7
com.apple.driver.AppleUpstreamUserClient 3.5.9
com.apple.driver.AppleMCCSControl 1.0.26
com.apple.driver.AppleMikeyDriver 2.1.3f7
com.apple.driver.AGPM 100.12.42
com.apple.driver.AppleIntelHDGraphics 7.1.4
com.apple.driver.AppleIntelHDGraphicsFB 7.1.4
com.apple.driver.SMCMotionSensor 3.0.1d2
com.apple.iokit.IOUserEthernet 1.0.0d1
com.apple.driver.AppleSMCLMU 2.0.1d2
com.apple.Dont_Steal_Mac_OS_X 7.0.0
com.apple.GeForce 7.1.4
com.apple.driver.AudioIPCDriver 1.2.1
com.apple.driver.ACPI_SMC_PlatformPlugin 4.7.5d4
com.apple.driver.AppleLPC 1.5.3
com.apple.driver.AppleMuxControl 3.0.16
com.apple.driver.AppleUSBTCButtons 225.2
com.apple.driver.AppleUSBTCKeyboard 225.2
com.apple.driver.AppleUSBCardReader 3.0.1
com.apple.driver.AppleIRController 312
com.apple.iokit.SCSITaskUserClient 3.0.1
com.apple.AppleFSCompression.AppleFSCompressionTypeDataless 1.0.0d1
com.apple.AppleFSCompression.AppleFSCompressionTypeZlib 1.0.0d1
com.apple.BootCache 33
com.apple.iokit.IOAHCIBlockStorage 2.0.1
com.apple.driver.AppleFWOHCI 4.8.9
com.apple.driver.AirPort.Brcm4331 512.20.18
com.apple.driver.AppleUSBHub 4.5.0
com.apple.iokit.AppleBCM5701Ethernet 3.0.8b2
com.apple.driver.AppleEFINVRAM 1.5.0
com.apple.driver.AppleSmartBatteryManager 161.0.0
com.apple.driver.AppleAHCIPort 2.2.0
com.apple.driver.AppleACPIButtons 1.4
com.apple.driver.AppleUSBEHCI 4.5.0
com.apple.driver.AppleRTC 1.4
com.apple.driver.AppleHPET 1.6
com.apple.driver.AppleSMBIOS 1.7
com.apple.driver.AppleACPIEC 1.4
com.apple.driver.AppleAPIC 1.5
com.apple.driver.AppleIntelCPUPowerManagementClient 167.0.0
com.apple.nke.applicationfirewall 3.2.30
com.apple.security.quarantine 1
com.apple.driver.AppleIntelCPUPowerManagement 167.0.0
com.apple.kext.triggers 1.0
com.apple.driver.DspFuncLib 2.1.3f7
com.apple.driver.AppleSMBusController 1.0.10d0
com.apple.iokit.IOSurface 80.0
com.apple.iokit.IOBluetoothSerialManager 4.0.1f4
com.apple.iokit.IOSerialFamily 10.0.5
com.apple.iokit.IOFireWireIP 2.2.4
com.apple.driver.AppleHDAController 2.1.3f7
com.apple.iokit.IOHDAFamily 2.1.3f7
com.apple.iokit.IOAudioFamily 1.8.3fc11
com.apple.kext.OSvKernDSPLib 1.3
com.apple.driver.ApplePolicyControl 3.0.16
com.apple.driver.AppleSMC 3.1.1d8
com.apple.driver.IOPlatformPluginFamily 4.7.5d4
com.apple.driver.AppleSMBusPCI 1.0.10d0
com.apple.driver.AppleGraphicsControl 3.0.16
com.apple.driver.AppleBacklightExpert 1.0.3
com.apple.nvidia.nv50hal 7.1.4
com.apple.NVDAResman 7.1.4
com.apple.iokit.IONDRVSupport 2.3.2
com.apple.iokit.IOGraphicsFamily 2.3.2
com.apple.driver.BroadcomUSBBluetoothHCIController 4.0.1f4
com.apple.driver.AppleUSBBluetoothHCIController 4.0.1f4
com.apple.iokit.IOBluetoothFamily 4.0.1f4
com.apple.driver.AppleUSBMultitouch 227.1
com.apple.iokit.IOSCSIBlockCommandsDevice 3.0.1
com.apple.iokit.IOUSBMassStorageClass 3.0.0
com.apple.iokit.IOUSBHIDDriver 4.4.5
com.apple.driver.AppleUSBMergeNub 4.5.3
com.apple.driver.AppleUSBComposite 3.9.0
com.apple.iokit.IOSCSIMultimediaCommandsDevice 3.0.1
com.apple.iokit.IOBDStorageFamily 1.6
com.apple.iokit.IODVDStorageFamily 1.7
com.apple.iokit.IOCDStorageFamily 1.7
com.apple.driver.XsanFilter 403
com.apple.iokit.IOAHCISerialATAPI 2.0.1
com.apple.iokit.IOSCSIArchitectureModelFamily 3.0.1
com.apple.iokit.IOFireWireFamily 4.4.5
com.apple.iokit.IO80211Family 411.1
com.apple.iokit.IOEthernetAVBController 1.0.0d5
com.apple.iokit.IONetworkingFamily 2.0
com.apple.iokit.IOUSBUserClient 4.5.3
com.apple.iokit.IOAHCIFamily 2.0.7
com.apple.driver.AppleEFIRuntime 1.5.0
com.apple.iokit.IOHIDFamily 1.7.1
com.apple.iokit.IOUSBFamily 4.5.3
com.apple.iokit.IOSMBusFamily 1.1
com.apple.security.sandbox 165.3
com.apple.kext.AppleMatch 1.0.0d1
com.apple.security.TMSafetyNet 7
com.apple.driver.DiskImages 331
com.apple.iokit.IOStorageFamily 1.7
com.apple.driver.AppleKeyStore 28.18
com.apple.driver.AppleACPIPlatform 1.4
com.apple.iokit.IOPCIFamily 2.6.7
com.apple.iokit.IOACPIFamily 1.4Looks like a plugin crash, possibly Satin, or maybe one of the others.
You can try one of these.
By holding down modifier keys while you open the application, you can put Logic Pro or Logic Express into one of several troubleshooting modes. To do this, go to your Applications folder, double-click the Logic icon, then hold down the respective modifier key(s) from the table below until a dialog appears or Logic is fully loaded.
Modifier key(s)
Description
Purpose
Control
Start without Audio
This can be helpful to rule out issues with a specific Core Audio driver. In some cases, Logic may stop responding or quit unexpectedly while initializing the Core Audio driver. In these cases, start Logic Pro or Logic Express without Audio. If needed, turn on Built-In Audio for the troubleshooting.
Shift-Control
AU-Safe Mode
This will only load Audio Units that have passed the Audio Units Validation Tool which is automatically launched on the very first startup of Logic. If you have enabled Audio Units that did not pass this test, you may experience unexpected quitting or misbehavior. With this option, you may revert Logic Pro or Logic Express to a stable state.
Option
Start without Autoload/Template/LastRecent
This will start Logic Pro or Logic Express without loading a Template, Autoload, or last-opened project. This can be useful for troubleshooting any kind of issue since it excludes the possibility that an issue is specific to or caused by the currently loaded project. Choosing File > New with the Option Key held down will load an empty default project for troubleshooting. -
PROBLEM EXPLANATION
Pretend that the attached excel file is a crystal report file
Column A is the details to be compared. Column B is the details that i will have to use a formula in sap crystal report.
as you can see cell B3 is same with the value in cell A2, B4 with A3, B5 with A4, B6 with A5 and so on.
How can i get the previous data of column A and put it in column B using formula in crystal report? either basic or crystal syntax
My Column
Colmun with formula
7000
0
7689
7000
9457
7689
8472
9457
2364
8472
12395
2364
18273
12395
84723
18273
57483
84723
493837
57483
2823747234
493837
226374
2823747234
7646363
226374
85826263
7646363
75756236324
85826263
1239534
75756236324
Message was edited by: Ludek UherHi,
Use the 'previous()' function.
Example:
Previous({Column A})
-Abhilash -
Hi there, hope somebody could help me with this little issue I am having
Hi there,
First of all I want to say that I am very pleased to be part of this community, my name is Juan and I got the following problem:
When my father tries to dial a mobile phone number (from his blackberry) starting with 32, phone adds a plus sign like if he was actually dialing an international number.
I mean, if he dials 321 815 5634, we get the following result: +321 815 5634
Hope someone could give me a clue on how to solve this.
Thanks in advance,
JuanHi Juan,
Welcome to BlackBerry Support Community Forum.
tanzim
If your query is resolved then please click on “Accept as Solution”
Click on the LIKE on the bottom right if the post deserves credit -
i can't install updates on my pc
yes i know that, firefox has downloaded that version
but when i try to install the update
i get a pop-up that say that im using firefox and need to close it
so i do that but then i get a error that im using firefox after that firefox cancel the update installation -
Can't Install Firefox Updates On My PC
yes i know that, firefox has downloaded that version
but when i try to install the update
i get a pop-up that say that im using firefox and need to close it
so i do that but then i get a error that im using firefox after that firefox cancel the update installation
Maybe you are looking for
-
A lot of blocking locks on NRIV daily
Hi experts, Our system has a lot of blocking locks on NRIV. I use DMV to check and find many processes update RF_BELEG frequently. I find note 840901 can solve using parallel buffering, but our FI users do not agree sale document number without con
-
Is there a possibility to insert a horizontal line in an equation? Prevereable in LaTex in a aligned area like in the example below. I found some kind of workaround but its far from perfect: \begin{aligned} x+y &=y+x\\ &\underline{\;\;\;\;\;\;\;\;\;
-
Finder fails to mount SMB share, while Terminal does
I'm trying to mount shared NTFS partition from my desktop running W2000 at work to my MB at home, and can't make Finder to see it (Error -36 and mount_smbfs: negotiate phase failed: syserr = Operation timed out in the console). Teminal can mount it 1
-
How do I open an fjsw file?
How do I open an fjsw file on my mac pro?
-
When I try to download latest version of Flash Player get a box showing downloads but there isn't anything in the box.