Trending questions in Java

0 votes
3 answers

How does the “final” keyword in Java work?

Final is a keyword that is used to ...READ MORE

Aug 31 in Java by DEEPAK KUMAR GUPTA
53 views
0 votes
2 answers

What are all the different ways to create an object in Java?

There are different ways you could do this ...READ MORE

Aug 19 in Java by Sirajul
• 30,140 points
75 views
+5 votes
3 answers

How to execute a python file with few arguments in java?

You can use Java Runtime.exec() to run python script, ...READ MORE

Mar 27, 2018 in Java by DragonLord999
• 8,380 points

edited Nov 6, 2018 by Omkar 9,120 views
0 votes
1 answer

How does Java convert integer value into byte?

When an integer value is converted into ...READ MORE

Feb 28 in Java by Avantika
• 1,500 points

edited Feb 28 by Omkar 843 views
0 votes
1 answer

Why is my Spring @Autowired field null?

If you are not coding a web ...READ MORE

Dec 27, 2018 in Java by Daisy
• 8,050 points
3,518 views
0 votes
1 answer

How to parse invalid XML in Java ?

That "XML" is worse than invalid – it's not well-formed; ...READ MORE

Mar 6 in Java by developer_1
• 3,300 points
519 views
0 votes
1 answer

Install Java on Ubuntu

Hi @Anvi, to install Java on Ubuntu, ...READ MORE

Mar 1 in Java by Pratibha
• 3,180 points
731 views
0 votes
1 answer

Replace all 0's with 5 in Java

Take a look at this, hope this ...READ MORE

Mar 6 in Java by Priyaj
• 56,900 points
449 views
0 votes
2 answers

String comparission in Java

You should use s1.equals(s2) instead of '==' ...READ MORE

Mar 14 in Java by anonymous
62 views
+1 vote
1 answer

What are the types of memory in JVM?

The different types of Memory in JVM ...READ MORE

Mar 7 in Java by Priyaj
• 56,900 points
317 views
0 votes
1 answer

Remove duplicates from an ArrayList in Java

Here is the function for doing this. // ...READ MORE

Mar 5 in Java by Heena
388 views
0 votes
1 answer

How do I break out of nested loops in Java?

You can use break with a label for the ...READ MORE

Mar 12 in Java by trisha
44 views
0 votes
3 answers

How can I separate the digits of an int number in Java?

import java.util.*; public class AmstrongNumber { public static void ...READ MORE

Aug 6 in Java by anonymous
3,562 views
0 votes
1 answer

Difference between Instance Variable and Class Variable

A variable defined within a block or ...READ MORE

Mar 12 in Java by Reema
51 views
0 votes
0 answers

Iterate over json and output multiple rows

I have a json in which multiple ...READ MORE

Mar 12 in Java by Yogesh
31 views
0 votes
1 answer

How to remove object from an Array?

Here is a code I came up ...READ MORE

Mar 11 in Java by Esha Gupta
42 views
0 votes
1 answer

Extend an array after initialization

Here is the method I came up ...READ MORE

Mar 11 in Java by Esha Gupta
42 views
0 votes
1 answer

Merge two array in Java

This is very simple, you need an ...READ MORE

Mar 11 in Java by Esha Gupta
36 views
0 votes
1 answer

Find common element between two array.

You just need nested loop, that will ...READ MORE

Mar 11 in Java by Esha Gupta
18 views
0 votes
1 answer

Start a Standalone Application in Java

You can make this work by calling start(...) directly on a ...READ MORE

Mar 5 in Java by developer_1
• 3,300 points
215 views
0 votes
1 answer

How to get rid of TLE in Java?

The TLE (Time limit exceed) problem occurs ...READ MORE

Mar 5 in Java by Disha
200 views
0 votes
1 answer

What is an Operand Stack in Java?

The basic utility of Operand Stack are ...READ MORE

Mar 7 in Java by Priyaj
• 56,900 points
81 views
0 votes
1 answer

What is JNI?

Java native interface, it is an interface ...READ MORE

Mar 7 in Java by Priyaj
• 56,900 points
52 views
0 votes
1 answer

What are the different methods of session management in servlets?

Session is a conversational state between client ...READ MORE

Feb 17 in Java by Frankie
• 9,810 points
773 views
0 votes
1 answer

How to break a number to individual digit?

The best way would be find the ...READ MORE

Mar 7 in Java by Priyaj
• 56,900 points
23 views
0 votes
1 answer

Count occurance of string in an array

You can use hashmap to solve this, ...READ MORE

Mar 7 in Java by Priyaj
• 56,900 points
22 views
0 votes
1 answer

What is integer boxing in java?

In Java the boxing range for any ...READ MORE

Mar 6 in Java by Avantika
• 1,500 points
37 views
0 votes
1 answer

Compiling error in Java

Generally the file name and the class ...READ MORE

Mar 7 in Java by Priyaj
• 56,900 points
14 views
0 votes
1 answer

What are the different ways of comparing Strings in Java?

The different ways of comparing string in ...READ MORE

Mar 5 in Java by Wasim
52 views
0 votes
1 answer

What are the different types of constructor in StringBuilder class?

There are different types of StringBuilder constructor ...READ MORE

Mar 5 in Java by Mariyam
47 views
0 votes
1 answer

finalize() called on strongly reachable object in Java 8

A bit of conjecture here. It is ...READ MORE

Mar 5 in Java by developer_1
• 3,300 points
34 views
0 votes
1 answer

Rotate elements of array by n position

Here is what I came up with,  import ...READ MORE

Mar 3 in Java by Priyaj
• 56,900 points
34 views
0 votes
1 answer

Write files to external public storage in Android

MediaStore has not discovered your newly-created files yet. ...READ MORE

Mar 1 in Java by developer_1
• 3,300 points
77 views
0 votes
1 answer

How to use nested class in Java?

This program will help you understand the ...READ MORE

Mar 3 in Java by Priyaj
• 56,900 points
25 views
0 votes
2 answers

How to check if a string has only letters

You could probably use Java 8 lambda ...READ MORE

Aug 30 in Java by Karan
• 3,610 points
41 views
0 votes
1 answer

First panel added to a frame disappears

The default layout of a JFrame (or more specifically ...READ MORE

Mar 1 in Java by developer_1
• 3,300 points
29 views
0 votes
1 answer

How to install and configure JDK8 on Windows 10

Hey @Henna, Go to this page  Accept the license ...READ MORE

Feb 28 in Java by Kalgi
63 views
0 votes
1 answer

Need help with Java Installation

Hi @Ashmita, to asnwer your question, lets ...READ MORE

Feb 27 in Java by Pratibha
• 3,180 points
57 views
0 votes
1 answer

Xpath in Java for accessing OWL Document

Don't query RDF (or OWL) with XPath In ...READ MORE

Feb 27 in Java by developer_1
• 3,300 points
38 views
0 votes
1 answer

Mathematical Operations in Java

Ok. This is happening because you're dividing ...READ MORE

Feb 27 in Java by developer_1
• 3,300 points
24 views
0 votes
2 answers

How to convert a byte into Hexadecimal in Java?

private static final String ...READ MORE

Aug 29 in Java by Sirajul
• 30,140 points
45 views
0 votes
2 answers

How do I get the size of a java.sql.ResultSet?

You could probably do rows-count. ResultSet rs = ...READ MORE

Aug 22 in Java by Sirajul
• 30,140 points
1,236 views
0 votes
1 answer

Getting "Unsupported major.minor version" error.

I will recommend not to upgrade the ...READ MORE

Feb 21 in Java by Sapan
74 views
0 votes
1 answer

Java version mismatch

We get this error when we write ...READ MORE

Feb 21 in Java by Vaishnavi
54 views
0 votes
2 answers

Resolving PKIX path building failed Error?

You need to add the certificate for App2 to ...READ MORE

Sep 24, 2018 in Java by Sushmita
• 6,880 points
8,589 views
0 votes
1 answer

How to disable session in JSP?

<%@ page session=“false” %>    Using this above command, you can ...READ MORE

Feb 18 in Java by Frankie
• 9,810 points
75 views
0 votes
1 answer

Using while loop i want to print 10 even numbers

Hello @Nitesh, you are pretty much there. ...READ MORE

Nov 22, 2018 in Java by Priyaj
• 56,900 points
3,840 views
0 votes
1 answer

What is composition in Java?

Composition is again specialized form of Aggregation ...READ MORE

Feb 17 in Java by Neha
• 6,280 points

edited Feb 18 by Neha 58 views
0 votes
1 answer

What do you mean by aggregation in Java?

Aggregation is a specialized form of Association ...READ MORE

Feb 17 in Java by Frankie
• 9,810 points
52 views