Category: Programming Related

Ask or post questions on anything which comes under programming,if you come across any programming bugs or for logic building also you can post your queries here.for example c,c++,java.

Discy Latest Questions

  • 0

I don’t have programming background but I am curious to know about Java. I want to know what is Java mainly used for?

I don’t have programming background but I am curious to know about Java.

I want to know what is Java mainly used for?

Read less
  • 0

Is there any criteria I need to fulfill to earn money from blogging ? If so, please tell me what is that ? Besides, also brief me about steps I need to follow for monetization of blogs.

Is there any criteria I need to fulfill to earn money from blogging ? If so, please tell me what is that ?

Besides, also brief me about steps I need to follow for monetization of blogs.

Read less
  • 0

im a fresher and started to learn few programming languages,which one of these is the most different language and how ? javascript php ruby python mysql…can discussion on this ?

im a fresher and started to learn few programming languages,which one of these is the most different language and how ? javascript php ruby python mysql…can discussion on this ?

Read less
  • 0

Got this question as a home work. Can someone help me out? i= 1 while True:     if i % 0O7 == 0:         break     print(i)     i += 1

Got this question as a home work. Can someone help me out?

i= 1
while True:
    if i % 0O7 == 0:
        break
    print(i)
    i += 1

Read less
  • 0

my java SE path is succesful and i updated java version recently…my java previous version is java 9 and i updated to 11. java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException Caused by: java.lang.ClassNotFoundException: javax.xml.bind.JAXBException how to fix this,no class found error in java ?

my java SE path is succesful and i updated java version recently…my java previous version is java 9 and i updated to 11.
java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException

Caused by: java.lang.ClassNotFoundException: javax.xml.bind.JAXBException

how to fix this,no class found error in java ?

Read less
  • 1

I wrote a java class which has equals method in it,and in the return type i used two int values (obj1 and obj2 ) these two instances are of int,and when i try to execute this java code i faced ...Read more

I wrote a java class which has equals method in it,and in the return type i used two int values (obj1 and obj2 ) these two instances are of int,and when i try to execute this java code i faced the following issue “java equals int cannot be dereferenced” why this int cannot be deferenced error and how can i fix this….

@Override
public boolean equals(Object myobj){
if (null == myobj)return false;
if (this == myobj)return true;

return obj1.equals(that.getAddition()) && obj2.equals(getDiv());
}

Read less
  • 0

i repeatedly facing this java error code…. why so ? “java error code 1603” .morning i tried to install install Java 8u25 i faced this error in log and what exactly does error code 1603 means and how ...Read more

i repeatedly facing this java error code…. why so ? “java error code 1603” .morning i tried to install install Java 8u25 i faced this error in log and what exactly does error code 1603 means and how can i fix this java error?

Read less
  • 0

I faced the following java error “exception in thread awt-eventqueue-0” java awt awterror boxlayout can t be shared”   Exception in thread “AWT-EventQueue-0” java.awt.AWTError: BoxLayout can’t be shared at javax.swing.BoxLayout.checkContainer(Unknown Source) at javax.swing.BoxLayout.invalidateLayout(Unknown Source) at javax.swing.BoxLayout.addLayoutComponent(Unknown Source) at java.awt.Container.addImpl(Unknown Source)Read more

I faced the following java error “exception in thread awt-eventqueue-0” java awt awterror boxlayout can t be shared

 

  1. Exception in thread “AWT-EventQueue-0” java.awt.AWTError: BoxLayout can’t be shared
    at javax.swing.BoxLayout.checkContainer(Unknown Source)
    at javax.swing.BoxLayout.invalidateLayout(Unknown Source)
    at javax.swing.BoxLayout.addLayoutComponent(Unknown Source)
    at java.awt.Container.addImpl(Unknown Source)
    at java.awt.Container.add(Unknown Source)
    at javax.swing.JFrame.addImpl(Unknown Source)
    at java.awt.Container.add(Unknown Source)
    at GUI.run(GUI.java:64)

I used import of box layout at program.
import javax.swing.BoxLayout;

Read less
  • 0

while developing a java application ,i faced the following error : “java error: could not find or load main class” how can we fix this?

while developing a java application ,i faced the following error : “java error: could not find or load main class” how can we fix this?

Read less