query stringlengths 1 74.9k | positive stringlengths 0 174k | negative stringlengths 1 174k | label float64 1 1 | task_name stringclasses 33
values |
|---|---|---|---|---|
CPU execution time in Java | How do I time a method's execution in Java? | 100% cpu in java | 1 | stackoverflowdupquestions |
Access static final variable using reflection | Get static variable in the class from import static by reflection | Check if a field is final in java using reflection | 1 | stackoverflowdupquestions |
JDBC Prepared Statement . setDate(....) doesn't save the time, just the date.. How can I save the time as well? | Using setDate in PreparedStatement | JDBC Prepared Statement, compiler doesn't recogonise set methods | 1 | stackoverflowdupquestions |
How do I prove that Object.hashCode() can produce similar hash code for two different objects in Java? | What is an object's hash code if hashCode() is not overridden? | equals and hashCode: Is Objects.hash method broken? | 1 | stackoverflowdupquestions |
How to read full response from HttpURLConnection? | Android Java: Get Response Body from HttpUrlConnection | How to Pass a File through an HttpURLConnection | 1 | stackoverflowdupquestions |
org.xml.sax.SAXParseException;cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found | cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'mvc:annotation-driven' | I am getting error in Spring Configuration XML file:org.xml.sax.SAXParseException | 1 | stackoverflowdupquestions |
Creating multiple HTTP sections in Spring Security Java Config | Failed to configure both stateless and stateful http sections with Spring Security..? | How to read from different sections of a file using multiple threads in java and will it be efficient? | 1 | stackoverflowdupquestions |
What does "|=" mean? (pipe equal operator) | what does mean these two operator "|=" and "|" | What does the -> <- operator do? | 1 | stackoverflowdupquestions |
I thought inner classes could access the outer class variables/methods? | inner class able to access outer classes attributes from method only | Get the outer class object from an inner class object | 1 | stackoverflowdupquestions |
Joda-Time: what's the difference between Period, Interval and Duration? | How to convert a Duration to Period in Joda? | why does Joda Time allow a Period constructor to take two LocalTimes but there is no Duration constructor like that? | 1 | stackoverflowdupquestions |
How to find the JMX port in a server? | How to find the default JMX port number? | How to access dynamicmbeans from a jmx client | 1 | stackoverflowdupquestions |
Why is #clone() not in the Cloneable interface? | Why is Cloneable not deprecated? | Mandatory cloneable interface in Java | 1 | stackoverflowdupquestions |
When to use an assertion and when to use an exception | Assertion VS Runtime exception | Assertion issue in Java and Eclipse | 1 | stackoverflowdupquestions |
fix frame rate of animated gif in Java | Read delay between frames in animated GIF | Creating animated gif in Java | 1 | stackoverflowdupquestions |
PDF library for Java | Free Java library for converting existing PDF to PDF/A | Read pdf using java | 1 | stackoverflowdupquestions |
How can I return value from function onResponse of Retrofit? | How can I update Activity/Fragment UI from Retrofit onResponse()? | java.lang.NullPointerException error on Retrofit onResponse | 1 | stackoverflowdupquestions |
How does java implement flyweight pattern for string under the hood? | The best alternative for String flyweight implementation in Java | Java: Does Collections.unmodifiableXYZ(...) in special cases make a collection object a flyweight? | 1 | stackoverflowdupquestions |
Cannot create a Java JSONArray from String | JSONArray from String | String to JSONArray in Java | 1 | stackoverflowdupquestions |
How to run ant command through java program? | Run ant from Java | ANT_HOME set correctly but couldn't run ant | 1 | stackoverflowdupquestions |
stanford core nlp java output | Executing and testing stanford core nlp example | Error in stanford nlp core | 1 | stackoverflowdupquestions |
java action listener: implements vs anonymous class | Removing anonymous listener | Generate anonymous listener in NetBeans | 1 | stackoverflowdupquestions |
How to fix Exception in thread "main" java.lang.NoClassDefFoundError: com/itextpdf/text/DocumentException | java.lang.NoClassDefFoundError: com/itextpdf/text/DocumentException | Exception in thread "main" java.lang.NoClassDefFoundError | 1 | stackoverflowdupquestions |
Canceling a CompletableFuture chain | CompletableFuture withFallback / handle only some errors | Is canceling an asyncTask expensive? | 1 | stackoverflowdupquestions |
java: reflection to obtain an Enum | Java: instantiating an enum using reflection | Java enum type name reflection | 1 | stackoverflowdupquestions |
Glassfish Admin Console throws java.lang.IllegalStateException when creating JDBC Pool | IllegalStateException: getOutputStream() when creating oracle connection pool in glassfish | IllegalStateException on LogoutServlet | 1 | stackoverflowdupquestions |
pdfbox and itext not able to extract image | pdfbox and itext extracting image with incorrect dpi | QuadBounds Order for PdfAnnotation markup using itext or pdfbox | 1 | stackoverflowdupquestions |
How can I parse UTC date/time (String) into something more readable? | Java Can't Parse UTC Date with SimpleDateFormat | Date in UTC in mysql | 1 | stackoverflowdupquestions |
System.out of nanoTime is incorrect? | System.currentTimeMillis vs System.nanoTime | Is System.nanoTime() guaranteed to return unique values? | 1 | stackoverflowdupquestions |
How to achieve jpeg lossless? | How to work with JPEG-LS in Java | How can I save image jpeg file? | 1 | stackoverflowdupquestions |
How to create interface between Fragment and adapter? | Not able to call the Fragment's function in its Adapter, Android App Development | Get adapter from OnActivityCreate() | 1 | stackoverflowdupquestions |
Java - How to overcome the maximum method size in automatically-generated code | Maximum size of a method in Java 7 and 8 | Is there a way to set a maximum size for a list? | 1 | stackoverflowdupquestions |
How do I Use "Multiple" SSL certificates in Java? | Using multiple SSL client certificates in Java with the same host | Compare SSL certificates via signature: is it enough? | 1 | stackoverflowdupquestions |
Optimize memory usage of a collection of Strings in Java | How can I optimize the code to always use the same reference to a String without increasing the memory usage? | optimize this java code? | 1 | stackoverflowdupquestions |
why does loading Drools 6 KIE JAR into code fail? | Loading Drools/KIE Workbench artifacts directly from the repository | Simple Drools 6 and Spring Example | 1 | stackoverflowdupquestions |
Should you use @NotNull and @JsonProperty(required) in the same object | Jackson @JsonProperty(required=true) doesn't throw an exception | @JsonProperty Json object inside Json object | 1 | stackoverflowdupquestions |
Dispose a JFrame on button click from another JFrame | Dispose JFrame from another class | In Java Jframe open another JFrame but JFrame show nothing | 1 | stackoverflowdupquestions |
Dynamically change the number of nested for loops | Writing nested for loops as while | from loop to Nested loops? | 1 | stackoverflowdupquestions |
How to make a jtable not editable in java? | How to make a JTable non-editable | how to Make only one column editable in JTable | 1 | stackoverflowdupquestions |
Eclipse debugging "source not found" | Eclipse java debugging: source not found | Eclipse debugging a variable | 1 | stackoverflowdupquestions |
Is it possible to extend a final class in Java? | How to extend a final class in Java | Java - Extend a class that extend a Thread class | 1 | stackoverflowdupquestions |
Difference between List, List<?>, List<T>, List<E>, and List<Object> | Difference between Class<?> and Class<Object> in Java | Difference between List<Object> and List | 1 | stackoverflowdupquestions |
slide effect with JPanel | Slide JPanel Content in a JForm on Java | Slide in list items in ListView Android? | 1 | stackoverflowdupquestions |
IPV6 address into compressed form in Java | Java Library for converting a long IPv6 address into its compressed form | how to convert ipv6 address into integer in Java programming language | 1 | stackoverflowdupquestions |
Simple Java HTTPS server | Java https server | Java connection to a https URL | 1 | stackoverflowdupquestions |
Cartesian product of streams in Java 8 as stream (using streams only) | Cartesian product using Java Streams | Why are Java Streams once-off? | 1 | stackoverflowdupquestions |
Java SSLException: hostname in certificate didn't match | SSLException: hostname in certificate didn't match: <50.19.233.255> != <*.heroku.com> | SSLException Bad Certificate | 1 | stackoverflowdupquestions |
How to check if a String is balanced? | Determine if a string that contains parentheses is balanced | Balanced parenthesis, how to count them? | 1 | stackoverflowdupquestions |
Java: how much time does an empty loop use? | A loop with an empty body in Java | How to check if String is empty? | 1 | stackoverflowdupquestions |
Crazy MS SQL Server JDBC driver at datetime field or time zone issue? | Before writing a Java Date to an SQL TIMESTAMP column, does JDBC translate the date from the JVM time zone to the database session time zone? | Time zone in Java | 1 | stackoverflowdupquestions |
How to use Sqoop in Java Program? | Maven repo for Sqoop | Sqoop jar deprecated | 1 | stackoverflowdupquestions |
TrueType Fonts in libGDX | TrueType fonts replaced with FreeType fonts in libgdx? | LibGdx should I use gl30? | 1 | stackoverflowdupquestions |
Unable to get Maven (and Eclipse) to use test resources while testing | how to make maven use test resources | Spring unable to find resources | 1 | stackoverflowdupquestions |
Does the finally block execute if the thread running the function is interrupted? | Can an interrupted Java thread really skip a finally clause? | Resume interrupted thread | 1 | stackoverflowdupquestions |
Get public key from private in Java | Public key from private key in java is incorrect | Can a class have both public and private constructor? | 1 | stackoverflowdupquestions |
How to ensure Java threads run on different cores | how to make Java uses multiple cores with threads? | Binding specific threads to specific processor cores | 1 | stackoverflowdupquestions |
Converting signed binary string in two's complement to int? | Convert 24 bits two's complement to signed decimal number in Java | Output for Converting a number in decimal into its Complement | 1 | stackoverflowdupquestions |
What is the motivation for two different week-based-year definitions in JSR-310? | java get week of year for given a date | How to get the YEAR for week of year for a date? | 1 | stackoverflowdupquestions |
How can I read all of the paragraphs of a text into a list? | What character can be used to parse for paragraphs with Java? | PDF with multiple paragraphs from Java Itext | 1 | stackoverflowdupquestions |
Run Jar file on PC at startup | Run Jar file on startup? | Java Web Application on startup | 1 | stackoverflowdupquestions |
Creating a Happens Before Relationship with AtomicBoolean | AtomicBoolean vs Synchronized block, whats the difference | When is it preferable to use volatile boolean in Java rather than AtomicBoolean? | 1 | stackoverflowdupquestions |
How to set Integer parameter as null in Hibernate query? | Hibernate: How to set NULL query-parameter value with HQL? | Hibernate Return integer value | 1 | stackoverflowdupquestions |
Converting a Java collection into a Scala collection | How to create a Scala parallel collection from a Java collection | Is List<List<String>> an instance of Collection<Collection<T>>? | 1 | stackoverflowdupquestions |
MyBatis - ResultHandler is not invoked | How to connect a ResultHandler in MyBatis Mapper XML | MyBatis - IntegerTypeHandler seems not working | 1 | stackoverflowdupquestions |
Fake a GWT Synchronous RPC call | Synchronous RPC Calls in GWT | GWT - synchronous return of a method | 1 | stackoverflowdupquestions |
Do uninitialized primitive instance variables use memory? | Java - uninitialized static variable in .class file | Uninitialized variable that has been initialized | 1 | stackoverflowdupquestions |
Deep Copy [] and ArrayList Java | How do you make a deep copy of an object in Java? | How to make a deep copy of an OWLOntology | 1 | stackoverflowdupquestions |
Java XML parsing: taking inner XML using SAX | Taking inner xml using sax | SAX parsing in android | 1 | stackoverflowdupquestions |
Spring MVC Controller: Redirect without parameters being added to my url | Spring MVC Controller redirect using URL parameters instead of in response | Spring Controller "redirect" | 1 | stackoverflowdupquestions |
What would be more efficient in java? If-return-else or If-return? | What is an efficient if/else in Java? | Is there a more efficient way to add to an Array? | 1 | stackoverflowdupquestions |
Spring MVC @Path variable with { } braces | Spring MVC @Path variable with null value | How to format java code automatically to add braces | 1 | stackoverflowdupquestions |
jButtons resize on runtime | Java Swing add/remove jButtons on runtime | Why aren't my images being added to my JButtons? | 1 | stackoverflowdupquestions |
How can you protect/encrypt your Java classes? | Is it possible to encrypt a java class file? | Is there is any way to protect the password in .xml using spring | 1 | stackoverflowdupquestions |
Java Incompatible magic value 4022320623 | Incompatible magic value 1008813135 | Incompatible Java method | 1 | stackoverflowdupquestions |
Create a .eml (email) file in Java | Create an email object in java and save it to file | Create a HTML Email from Java | 1 | stackoverflowdupquestions |
Gson: How do I deserialize interface fields having class names? | Gson deserialize interface to its Class implementation | Gson deserialize into map | 1 | stackoverflowdupquestions |
How do I get maven managed dependencies copied into war\web-inf\lib so I can run my GWT 2.0 app in debug mode within Eclipse? | Maven GWT 2.0 and Eclipse | Maven generate jar dependencies then war | 1 | stackoverflowdupquestions |
How to set a breakpoint in Eclipse in a third party library? | How can I set breakpoint in Eclipse? | get third party library versions in Java | 1 | stackoverflowdupquestions |
Print odd and even using two threads in Java | Printing Even and Odd using two Threads in Java | Print Even Odd number using two threads | 1 | stackoverflowdupquestions |
Windows: how to get a list of all visible windows? | Linux: how to get a list of all visible windows | How could I get the number of visible windows of my app? | 1 | stackoverflowdupquestions |
How to escape the equals sign in properties files | How to escape double column in Java properties file? | What does the @sign do? | 1 | stackoverflowdupquestions |
CreateProcess error=206, The filename or extension is too long when running main() method | When executing proguard-maven-plugin, "CreateProcess error=206, The filename or extension is too long" occurs | Error launching a Java app from a Win32 C++ app using CreateProcess | 1 | stackoverflowdupquestions |
Is this the correct way of using Java 2D Graphics API? | Java - get Graphics | How to Check Mouse Click in 2D Graphics java. | 1 | stackoverflowdupquestions |
Why ThreadGroup is being criticised? | What is the benefit of ThreadGroup in java over creating separate threads? | Switch-Case using quote (') | 1 | stackoverflowdupquestions |
What is the proper way to handle a NumberFormatException when it is expected? | How should I handle NumberFormatException in java? | NumberFormatException Error | 1 | stackoverflowdupquestions |
Handled Java Exception resulting in Unhandled Exception | Java 8 method reference unhandled exception | Unhandled Exception Junit | 1 | stackoverflowdupquestions |
Returning a value from a finally block | Returning from a finally block in Java | try block with empty finally block | 1 | stackoverflowdupquestions |
Maven configuration with Spring Boot & multi modules - run application in Intellij | Maven module using spring-boot | Intellij spring boot app does not work from tomcat | 1 | stackoverflowdupquestions |
Is there a way to avoid undeployment memory leaks in Tomcat? | Tomcat memory leaks | the relation between resource leaks and Memory leaks and performance | 1 | stackoverflowdupquestions |
java.lang.NoSuchMethodError in Flink | Flink Avro 1.8.1 NoSuchMethodError when running on cluster | java.lang.NoSuchMethodError: com.google.common.base.Preconditions.checkArgument | 1 | stackoverflowdupquestions |
NullPointerException when using path name to load image file | NullPointerException when using path name to show image in jar file | NullPointerException while getting an Image | 1 | stackoverflowdupquestions |
How to implement pagination in Spring MVC 3 | How to implement general pagination | Displaytag / Spring MVC pagination | 1 | stackoverflowdupquestions |
Spring's @RequestBody providing empty string on POST | Spring REST @RequestBody is always empty | Spring Bind @RequestBody to other data types | 1 | stackoverflowdupquestions |
What's the difference between getRequestURI and getPathInfo methods in HttpServletRequest? | HttpServletRequest to complete URL | in JSP is there a way to pass HttpServletRequest object as an attribute to another HttpServletRequest object | 1 | stackoverflowdupquestions |
Java associative-array | Multilevel Associative array in java like php | Java Beans: Overglorified Associative Arrays? | 1 | stackoverflowdupquestions |
Maven compile with multiple src directories | Maven android compiling multiple source directories | Creating Multiple File Directories | 1 | stackoverflowdupquestions |
Java Thread wait() => blocked? | Difference between WAIT and BLOCKED thread states | Thread which gets Information from the server is blocked | 1 | stackoverflowdupquestions |
(1)Convert the ECDSA private & public key, (2)Verification by ECDSA | Tutorial of ECDSA algorithm to sign a string | Error when verifying ECDSA signature in Java with BouncyCastle | 1 | stackoverflowdupquestions |
How to set file owner/group when creating a file in Java | Change file owner group under Linux with java.nio.Files | Get file owner metadata information with java | 1 | stackoverflowdupquestions |
Why is JFormattedTextField evil? | How to get the same value as the user is seeing from a JFormattedTextField? | Check for empty JFormattedTextField | 1 | stackoverflowdupquestions |
Checking whether intersection of two lists is valid, returning intersection itself not necessary | List intersection in java | Java find intersection of two lines | 1 | stackoverflowdupquestions |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.