Trending questions in Java

0 votes
0 answers

How to set XML Attribute inside XML Element in Java Pojo Class - JAVX

How can I get this Output Response? <Response> ...READ MORE

Apr 19, 2022 in Java by Rahul
• 3,380 points
3,695 views
0 votes
0 answers

Could not connect to SMTP host: smtp.gmail.com, port: 465, response: -1

I am getting this error when I ...READ MORE

May 20, 2022 in Java by Kichu
• 19,040 points
2,341 views
0 votes
0 answers

What is "String args[]"? parameter in main method Java

I am a beginner in java and ...READ MORE

May 15, 2022 in Java by Kichu
• 19,040 points
900 views
0 votes
0 answers

java.lang.NumberFormatException: null i

I am getting this error while doing ...READ MORE

May 13, 2022 in Java by Kichu
• 19,040 points
2,512 views
0 votes
0 answers

java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver

I am getting this exception when I ...READ MORE

May 7, 2022 in Java by narikkadan
• 86,360 points
2,731 views
0 votes
0 answers

How to round up integer division and have int result in Java?

I am working on a code to ...READ MORE

May 5, 2022 in Java by Kichu
• 19,040 points
2,736 views
0 votes
0 answers

Error occurred during initialization of boot layer FindException: Module not found

I executed this command line: java --module-path bin ...READ MORE

May 13, 2022 in Java by Kichu
• 19,040 points
2,293 views
0 votes
0 answers

Eclipse "Error: Could not find or load main class"

I have a project on my laptop ...READ MORE

May 7, 2022 in Java by narikkadan
• 86,360 points
2,498 views
+29 votes
3 answers

How can we set java.library.path in Eclipse?

Go into the library settings for your ...READ MORE

Jul 3, 2018 in Java by sharth
• 3,370 points
23,823 views
0 votes
1 answer

How do I resolve the "java.net.BindException: Address already in use: JVM_Bind" error?

If you are aware about what port ...READ MORE

Feb 22, 2022 in Java by Aditya
• 7,680 points
5,563 views
0 votes
0 answers

Getting java.lang.ClassNotFoundException: org.apache.commons.logging.LogFactory exception

I am getting this exception when I ...READ MORE

May 18, 2022 in Java by Kichu
• 19,040 points
1,879 views
0 votes
0 answers

How can I fix 'android.os.NetworkOnMainThreadException'?

When I run the Android project for ...READ MORE

May 23, 2022 in Java by Kichu
• 19,040 points
1,610 views
0 votes
1 answer

Does Java have a "IN" operator or function like SQL? [duplicate]

The Java language is designed to be ...READ MORE

Feb 2, 2022 in Java by Vaani
• 7,070 points

edited Jun 22, 2023 by Khan Sarfaraz 6,242 views
0 votes
0 answers

keytool error Keystore was tampered with, or password was incorrect

When I generate certificates on my local ...READ MORE

May 19, 2022 in Java by Kichu
• 19,040 points
1,541 views
0 votes
0 answers

org.openqa.selenium.WebDriverException at NativeConstructorAccessorImpl.java:-2

Im receiving this error when I run ...READ MORE

Jun 14, 2022 in Java by anonymous

edited Mar 4 119 views
0 votes
0 answers

How to avoid java.util.ConcurrentModificationException when iterating through and removing elements from an ArrayList

I wanted to iterate over an ArrayList ...READ MORE

May 23, 2022 in Java by Kichu
• 19,040 points
1,009 views
0 votes
1 answer

Angular JS Uncaught Error: [$injector:modulerr]

 The answer to your question is simple ...READ MORE

Feb 18, 2022 in Java by Aditya
• 7,680 points
4,877 views
0 votes
0 answers

Converting Java objects to JSON with Jackson

I need my JSON to be like ...READ MORE

May 23, 2022 in Java by Kichu
• 19,040 points
811 views
0 votes
0 answers

java.net.SocketException: Connection reset

I was having an error when I ...READ MORE

May 8, 2022 in Java by Kichu
• 19,040 points
1,409 views
0 votes
4 answers

“Cannot find symbol” compilation error

The "Cannot find symbol" errors generally occur when you ...READ MORE

Dec 16, 2020 in Java by Gitika
• 65,730 points
43,090 views
0 votes
0 answers

What is a IOException, and how do I fix it?

What is causing java.io.IOException? What does it ...READ MORE

May 19, 2022 in Java by Kichu
• 19,040 points
737 views
0 votes
0 answers

Error java.lang.OutOfMemoryError: GC overhead limit exceeded

When I execute my JUnit tests I am getting ...READ MORE

May 15, 2022 in Java by Kichu
• 19,040 points
837 views
0 votes
0 answers

The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path [duplicate]

I have a project created by Maven ...READ MORE

Apr 21, 2022 in Java by Rahul
• 3,380 points
1,863 views
0 votes
1 answer

Start script missing error when running npm start

It seems that there is an undefined ...READ MORE

Feb 10, 2022 in Java by Soham
• 9,730 points
4,828 views
0 votes
0 answers

https://www.edureka.co/community/179087/using-settimeout-to-delay-timing-of-jquery-actions

I'm new to React and try to ...READ MORE

May 27, 2022 in Java by Edureka
• 13,690 points

edited Mar 4 188 views
0 votes
0 answers

Can an outer class access the members of inner class?

If the inner class is defined as ...READ MORE

May 9, 2022 in Java by Kichu
• 19,040 points
700 views
0 votes
1 answer

Javascript require() function giving ReferenceError: require is not defined

RequireJS is a JavaScript file and module ...READ MORE

Feb 17, 2022 in Java by Aditya
• 7,680 points
4,141 views
0 votes
0 answers

Int division: Why is the result of 1/3 == 0?

I ran this code and got the result ...READ MORE

May 9, 2022 in Java by Kichu
• 19,040 points
584 views
0 votes
1 answer

JavaScript: Upload file

For a Pure JS, you can use ...READ MORE

Feb 18, 2022 in Java by Aditya
• 7,680 points
3,912 views
0 votes
0 answers

window.location.href and window.open () methods in JavaScript

What is the difference between window.location.href and ...READ MORE

Apr 26, 2022 in Java by Rahul
• 3,380 points
850 views
0 votes
0 answers

public static void main(String arg[ ] ) in java is it fixed?

I was recently asked in an exam ...READ MORE

Apr 19, 2022 in Java by Rahul
• 3,380 points
1,119 views
0 votes
0 answers

How do I "decompile" Java class files? [closed]

What program can I use to decompile ...READ MORE

Apr 21, 2022 in Java by Rahul
• 3,380 points
969 views
0 votes
1 answer

testingtesttest

This category is home to all kinds ...READ MORE

Apr 26, 2022 in Java by anonymous
• 300 points
684 views
0 votes
0 answers

Unscramble Letters in Java - Get all possible combinations of the letters

I am currently an AP Computer Science ...READ MORE

Apr 13, 2022 in Java by Rahul
• 3,380 points
1,248 views
0 votes
0 answers

What is a NullPointerException, and how do I fix it?

What are Null Pointer Exceptions (java.lang.NullPointerException) and ...READ MORE

Apr 26, 2022 in Java by Rahul
• 3,380 points
709 views
0 votes
0 answers

What is the default access specifier in Java?

I just started reading a Java book ...READ MORE

Apr 26, 2022 in Java by Rahul
• 3,380 points
708 views
0 votes
0 answers

Data access object (DAO) in Java

I was going through a document and ...READ MORE

Apr 19, 2022 in Java by Rahul
• 3,380 points
1,008 views
0 votes
0 answers

Comparing java.utilDate with LocalDate in java

I have a method wherein have to ...READ MORE

Apr 21, 2022 in Java by Rahul
• 3,380 points
876 views
0 votes
0 answers

What are the differences between a HashMap and a Hashtable in Java?

What are the differences between a HashMap and a Hashtable in ...READ MORE

Apr 26, 2022 in Java by Rahul
• 3,380 points
607 views
0 votes
0 answers

Why is there no multiple inheritance in Java, but implementing multiple interfaces is allowed?

Java doesn't allow multiple inheritance, but it ...READ MORE

Apr 26, 2022 in Java by Rahul
• 3,380 points
583 views
0 votes
0 answers

When to use LinkedList over ArrayList in Java?

I've always been one to simply use: List<String> ...READ MORE

Apr 26, 2022 in Java by Rahul
• 3,380 points
563 views
0 votes
0 answers

Convert integer to string

Given a number: int number = 1234; Which would ...READ MORE

Apr 26, 2022 in Java by Rahul
• 3,380 points
522 views
0 votes
0 answers

How do you use the ? : (conditional) operator in JavaScript?

In simple words, what is the ?: ...READ MORE

Apr 26, 2022 in Java by Rahul
• 3,380 points
516 views
0 votes
0 answers

Generate random number between two numbers in JavaScript

Is there a way to generate a random ...READ MORE

May 4, 2022 in Java by Rahul
• 3,380 points

edited Mar 4 169 views
0 votes
0 answers

What does "javascript:void(0)" mean?

<a href="javascript:void(0)" id="loginlink">login</a> I've seen such hrefs many ...READ MORE

Apr 14, 2022 in Java by Rahul
• 3,380 points
1,030 views
0 votes
0 answers

How to split a string in Java

I have a string, "004-034556", that I want ...READ MORE

Apr 21, 2022 in Java by Rahul
• 3,380 points
712 views
0 votes
0 answers

How to initialize an array in Java?

I am initializing an array like this: public ...READ MORE

May 4, 2022 in Java by Rahul
• 3,380 points

edited Mar 4 97 views
+1 vote
1 answer

Google Conversions Not Working - Script Won't Load

To give you a suggestion, you will ...READ MORE

Feb 10, 2022 in Java by Soham
• 9,730 points
3,570 views
0 votes
0 answers

Reversing an Array in Java [duplicate]

If I have an array like this: 1 ...READ MORE

Apr 21, 2022 in Java by Rahul
• 3,380 points
601 views