Category: Java

Post specific questions which are related to Java programming language,if you have any queries related to the java programming platform you can post here to get answers from other users.

Discy Latest Questions

  • 0

When i try to execute a simple java program, i came across following error. Java Error : No suitable method for println(string,int)  how can i fix this ? Read more

When i try to execute a simple java program, i came across following error. Java Error : No suitable method for println(string,int)  how can i fix this ?

Read less
  • 0

Can anyone show me example program using methods with parameters in Java. there is a JAVA assignment for me so I need an example program which uses parameters inside a method.

Can anyone show me example program using methods with parameters in Java. there is a JAVA assignment for me so I need an example program which uses parameters inside a method.

Read less
  • 0

I am running a .jar file on my java environment and I encountered following error “java error a jni error has occurred please check your installation and try again”. How can i fix java error a jni error has occurred ...Read more

I am running a .jar file on my java environment and I encountered following error “java error a jni error has occurred please check your installation and try again”. How can i fix java error a jni error has occurred please check your installation and try again ? is anything wrong with my java installation ?

Read less
  • 0

Currently im learning java and want set a java path in environment variables. How to set java path and class path in windows 10 laptop ? do we get errors while set java path and java_home in windows 10 ? ...Read more

Currently im learning java and want set a java path in environment variables. How to set java path and class path in windows 10 laptop ? do we get errors while set java path and java_home in windows 10 ? Can anyone show a easy step by step procedure to set java execution environment,where i can use java on my computer. Image help would be really helpful.

Read less
  • 0

Im trying to test a java applet on chrome browser and mine is windows 10 OS. And the following error is popping up .. Your Java version is out-of-date. Application Blocked Application Blocked by Security Settings. How can i fix “java ...Read more

Im trying to test a java applet on chrome browser and mine is windows 10 OS. And the following error is popping up ..

Your Java version is out-of-date.
Application Blocked
Application Blocked by Security Settings. How can i fix “java error application blocked by security settings” This error, i tried to install latest version of java, but still im seeing “java error application blocked by security settings” Error.

Read less
  • 0

I’m getting this java. lang. NullPointerException when ever I try to call a function from the class array I created. For example: A[] arr = new A[10] //Error occurs when I execute this line below arr[0].methodName() Can anyone tell me why ...Read more

I’m getting this java. lang. NullPointerException when ever I try to call a function from the class array I created.
For example:
A[] arr = new A[10]

//Error occurs when I execute this line below
arr[0].methodName()

Can anyone tell me why am I getting this error?

Read less
  • 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

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