Trending questions in Java

0 votes
1 answer

Can not find the tag library descriptor for “http://java.sun.com/jsp/jstl/core”

If you have a jstl.jar file while ...READ MORE

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

java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: YES)

This is the exception on getConnection(): java.sql.SQLException: Access denied ...READ MORE

May 16, 2022 in Java by Kichu
• 19,050 points
4,703 views
0 votes
1 answer

Execution Failed for task :app:compileDebugJavaWithJavac in Android Studio

In Android Studio 3.1, you can see ...READ MORE

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

Copy several byte arrays to one big byte array

I have several little byte arrays and ...READ MORE

Aug 18, 2022 in Java by krishna
• 2,820 points
430 views
0 votes
0 answers

How to declare an array of different data types

In Java, I am working with arrays, ...READ MORE

Aug 3, 2022 in Java by krishna
• 2,820 points
817 views
0 votes
0 answers

How are arrays implemented in java?

In Java, arrays are implemented as objects, ...READ MORE

Aug 18, 2022 in Java by krishna
• 2,820 points
160 views
0 votes
1 answer

jQuery get value of select onChange

Try the following lines of code- $('select').on('change', function() ...READ MORE

Feb 11, 2022 in Java by Soham
• 9,700 points
8,018 views
0 votes
0 answers

Where is Java's Array indexOf?

I am not able to find it. ...READ MORE

Aug 12, 2022 in Java by krishna
• 2,820 points
113 views
0 votes
0 answers

How do I fill arrays in Java?

Is there a proper way to fill ...READ MORE

Aug 12, 2022 in Java by krishna
• 2,820 points
108 views
0 votes
0 answers

Where is array's length property defined?

As you know, to determine the length ...READ MORE

Aug 12, 2022 in Java by krishna
• 2,820 points
107 views
0 votes
0 answers

Returning arrays in Java

I am trying to return an array ...READ MORE

Aug 11, 2022 in Java by krishna
• 2,820 points
121 views
0 votes
0 answers

How do I declare and initialize an array in Java?

How can I declare and initialize an ...READ MORE

Aug 11, 2022 in Java by krishna
• 2,820 points
107 views
0 votes
0 answers

Arrays of different types

Is it possible to have an array ...READ MORE

Aug 8, 2022 in Java by krishna
• 2,820 points
127 views
0 votes
0 answers

Multidimensional Arrays lengths in Java

How can I determine the lengths of ...READ MORE

Aug 8, 2022 in Java by krishna
• 2,820 points
98 views
0 votes
0 answers

Sort arrays of primitive types in descending order

I got a huge array of double ...READ MORE

Aug 3, 2022 in Java by krishna
• 2,820 points
288 views
0 votes
4 answers

How do I check if a file exists in Java?

To test to see if a file ...READ MORE

Dec 29, 2020 in Java by Rajiv
• 8,910 points
25,275 views
0 votes
0 answers

Difference between Arrays.asList(array) and new ArrayList<Integer>(Arrays.asList(array))

What's the difference in these two ways? List<Integer> ...READ MORE

Aug 5, 2022 in Java by krishna
• 2,820 points
188 views
0 votes
0 answers

Matrix multiplication using arrays

Utilizing multidimensional arrays, I'm attempting to create ...READ MORE

Aug 5, 2022 in Java by krishna
• 2,820 points
177 views
0 votes
0 answers

What is the difference between List.of and Arrays.asList?

In java 9, new factory methods for ...READ MORE

Aug 2, 2022 in Java by krishna
• 2,820 points
219 views
0 votes
0 answers

Spring Maven clean error - The requested profile "pom.xml" could not be activated because it does not exist

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

May 8, 2022 in Java by Kichu
• 19,050 points
3,932 views
0 votes
0 answers

Benefits of arrays

The benefits of a list over an ...READ MORE

Aug 3, 2022 in Java by krishna
• 2,820 points
155 views
0 votes
0 answers

Why does Java's Arrays.sort method use two different sorting algorithms for different types?

The array.sort method in Java 6 makes ...READ MORE

Aug 3, 2022 in Java by krishna
• 2,820 points
132 views
0 votes
0 answers

What does it mean that Java arrays are homogeneous, but ArrayLists are not?

If I got a Type[] array, I ...READ MORE

Aug 1, 2022 in Java by krishna
• 2,820 points
193 views
0 votes
0 answers

CreateProcess error=2, The system cannot find the file specified

I have written a java program to ...READ MORE

May 5, 2022 in Java by Kichu
• 19,050 points
3,977 views
0 votes
1 answer

Using setTimeout to delay timing of jQuery actions

The JavaScript setTimeout () function  is used ...READ MORE

May 30, 2022 in Java by gaurav
• 22,970 points
2,763 views
0 votes
1 answer

Unrecognized SSL message, plaintext connection? Exception

It is due to the fact that ...READ MORE

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

Exception in thread "main" java.lang.Error: Unresolved compilation problems

I am facing issues importing classes and ...READ MORE

May 7, 2022 in Java by narikkadan
• 58,640 points
2,987 views
0 votes
1 answer

jQuery.click() vs onClick

So, using a string that is tied ...READ MORE

May 30, 2022 in Java by gaurav
• 22,970 points
1,927 views
0 votes
0 answers

Server Tomcat v9.0 Server at localhost failed to start

I am using Tomcat server v9.0 but ...READ MORE

May 23, 2022 in Java by Kichu
• 19,050 points
2,100 views
0 votes
1 answer

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

To answer your question, first of all, ...READ MORE

Feb 9, 2022 in Java by Rahul
• 9,670 points
6,320 views
0 votes
0 answers

resource : Invocation of init method failed

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

May 16, 2022 in Java by Kichu
• 19,050 points
1,927 views
0 votes
2 answers

Unable to find valid certification path to requested target

Unfortunately - it could be many things ...READ MORE

Dec 15, 2020 in Java by Roshni
• 10,520 points
39,933 views
0 votes
0 answers

Editor does not contain a main type in Eclipse

I have 64-bit ubuntu where I downloaded ...READ MORE

May 19, 2022 in Java by Kichu
• 19,050 points
1,686 views
0 votes
1 answer

The difference between Classes, Objects, and Instances

A class is a type of blueprint ...READ MORE

Jun 7, 2022 in Java by pranav
• 2,590 points
662 views
0 votes
0 answers

Error: The processing instruction target matching "[xX][mM][lL]" is not allowed

An error occurs when I run I ...READ MORE

May 23, 2022 in Java by Kichu
• 19,050 points
1,330 views
0 votes
0 answers

java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 exception

I am getting the error java.lang.IndexOutOfBoundsException: Index: ...READ MORE

May 17, 2022 in Java by Kichu
• 19,050 points
1,543 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,050 points
1,364 views
0 votes
1 answer

Cannot open local file - Chrome: Not allowed to load local resource

To answer your query, start with opening ...READ MORE

Feb 18, 2022 in Java by Aditya
• 7,680 points
5,085 views
0 votes
1 answer

Get selected text from a drop-down list (select box) using jQuery

Select elements typically have two values that ...READ MORE

May 30, 2022 in Java by gaurav
• 22,970 points
759 views
0 votes
0 answers

Javamail Could not convert socket to TLS GMail

I want to send an email using ...READ MORE

May 2, 2022 in Java by Kichu
• 19,050 points
1,896 views
0 votes
1 answer

Google AJAX Libraries CDN for jQuery

The Google Hosted Libraries is a stable, ...READ MORE

May 30, 2022 in Java by gaurav
• 22,970 points
652 views
0 votes
0 answers

Java 11 JDK for Windows 7 32-bit system

I wanted to install Java 11 on ...READ MORE

Apr 21, 2022 in Java by Rahul
• 3,380 points
2,268 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,050 points
1,277 views
0 votes
1 answer

The specified child already has a parent. You must call removeView() on the child's parent first (Android)

The error message says what You should ...READ MORE

Feb 16, 2022 in Java by Aditya
• 7,680 points
4,915 views
0 votes
1 answer

No compiler is provided in this environment. perhaps you are running on a jre rather than a jdk?

Once you are on your Eclipse integrated ...READ MORE

Feb 8, 2022 in Java by Rahul
• 9,670 points
5,217 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
• 58,640 points
1,320 views
0 votes
0 answers

Is hiding implementation detail Encapsulation or Abstraction?

I have seen some people defining abstraction ...READ MORE

May 6, 2022 in Java by narikkadan
• 58,640 points
1,329 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,050 points
612 views
0 votes
0 answers

CCAvenue Payment Error code 10002 Merchant Authentication failed. Don't worry... It happens to the best of us

I used the code which is provided ...READ MORE

May 24, 2022 in Java by Kichu
• 19,050 points
550 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,050 points
729 views