query stringlengths 1 74.9k | positive stringlengths 0 174k | negative stringlengths 1 174k | label float64 1 1 | task_name stringclasses 33
values |
|---|---|---|---|---|
java socket full duplex | Do Java sockets support full duplex? | Use of socket.setReceiveBufferSize() | 1 | stackoverflowdupquestions |
How to mock another method in the same class which is being tested? | mock methods in same class | How can I mock a KerberosTicket instance? | 1 | stackoverflowdupquestions |
How can I instantiate a member class through reflection on Android | How to instantiate an inner class with reflection in Java? | Using reflection to find class member value | 1 | stackoverflowdupquestions |
Java - Does null variable require space in memory | Where is "null" in memory | Java doesn't see space in string | 1 | stackoverflowdupquestions |
Why should I use Weak/SoftReference with ReferenceQueue argument?Why cannot I poll original reference and check if null? | Using Java's ReferenceQueue | SoftReference gets garbage collected too early | 1 | stackoverflowdupquestions |
In java how do I check if a user is pressing a certain key? | How do I check if the user is pressing a key? | How can I stop people from pressing return in my code | 1 | stackoverflowdupquestions |
Flickr API + JAVA - flickrj | Using Https Protocol for downloading data from Flickr | Modern Flickr API for Java | 1 | stackoverflowdupquestions |
JDBC - Statement, PreparedStatement, CallableStatement and caching | Can CallableStatement be used in place of PreparedStatement? | JDBC Statement/PreparedStatement per connection | 1 | stackoverflowdupquestions |
AbstractTableModel updating from different threads | AbstractTableModel GUI display issue | Add row to top of AbstractTableModel | 1 | stackoverflowdupquestions |
Want to upload war automatically on server if something get changed on local | How do I automatically export a WAR after Java build in Eclipse? | Is it possible to automatically upload files when created to a web server? | 1 | stackoverflowdupquestions |
How to update a TextView of an Activity from another class | How to update a TextView from another | TextView to String | 1 | stackoverflowdupquestions |
Java: JPanel background not scaling | Background image for a jPanel not working | JPanel background image | 1 | stackoverflowdupquestions |
When to use EntityManager.find() vs EntityManager.getReference() with JPA | What is the difference between EntityManager.find() and EntityManger.getReference()? | Spring DaoSupport and @PersistanceContext EntityManager? | 1 | stackoverflowdupquestions |
The concept of shadowing | What is variable shadowing used for in a Java class? | What is the difference between for each and traditional for loop in Java in terms of shadowing? | 1 | stackoverflowdupquestions |
how is java deep copy possible in this situation | Java HashMap - deep copy | How should Deep Copy Work? | 1 | stackoverflowdupquestions |
What does it mean: The serializable class does not declare a static final serialVersionUID field? | The serializable class X does not declare a static final serialVersionUID field of type long | why user defined serialVersionUID is not used while desialization? | 1 | stackoverflowdupquestions |
AES-256 and PKCS7Padding fails in Java | java.security.NoSuchAlgorithmException:Cannot find any provider supporting AES/ECB/PKCS7PADDING | AES -256 decryption | 1 | stackoverflowdupquestions |
Java - Servlet 404 error | Getting HTTP Status 404 error when trying to run servlet | 404 with simple java servlet/html form | 1 | stackoverflowdupquestions |
How to get JAX-WS response HTTP status code | Get HTTP response code from JAX-WS asynchronous web service | Use variable between JAX-WS requests | 1 | stackoverflowdupquestions |
How to get a Class<?> instance from a File instance without resorting to strings | How can get an instance from .class file in java | How to get Instance of Any class? | 1 | stackoverflowdupquestions |
Howto let the SAX parser determine the encoding from the xml declaration? | Sax parser encoding in Java | SAX Parser and XAPI xml | 1 | stackoverflowdupquestions |
How can I pass a Scala object reference around in Java? | How to pass nested scala object reference in Java? | Return type from Scala method to Java | 1 | stackoverflowdupquestions |
SQLITE_BUSY the database is locked java | Getting [SQLITE_BUSY] database file is locked with select statements | java "database is locked" SQL exception | 1 | stackoverflowdupquestions |
@PreUpdate does not work with Spring Data JPA | EclipseLink JPA `@PreUpdate` call not persisting | PreInsert and PreUpdate Event Listener in hibernate | 1 | stackoverflowdupquestions |
ChoiceField (or: a better JPA Enum) in Play? | Map enum in JPA with fixed values? | What is a Java enum? | 1 | stackoverflowdupquestions |
paintComponent is executing twice | why is my code executing paintComponent(Graphics page) twice? | paintComponent() in Java is not being called | 1 | stackoverflowdupquestions |
Date in UTC in mysql | Retrieving UTC DATETIME field from MySQL in Java when server timezone is not UTC | Unable to get the date in UTC format | 1 | stackoverflowdupquestions |
How to use split method with stringbuilder together in the same class? | When to use StringBuilder in Java | Correct way to use StringBuilder in SQL | 1 | stackoverflowdupquestions |
java.util.date Format Conversion | Java string to date conversion | java string date conversion | 1 | stackoverflowdupquestions |
How to convert InputStream to FileInputStream | Convert InputStream into FileInputStream | Using FileInputStream to read text from file | 1 | stackoverflowdupquestions |
Showing JDialog in taskbar not working | Show JDialog on Windows taskbar | How to keep taskbar bottom of other windows? | 1 | stackoverflowdupquestions |
how to find seconds since 1970 in java | How do I get milliseconds from epoch (1970-01-01) in Java? | SetDate() to Calendar object to change time, changes the date back to 1970 | 1 | stackoverflowdupquestions |
What's the worst resolution I can reasonably expect from System.nanoTime? | Why I get a negative elapsed time using System.nanoTime()? | System.nanoTime() in Java gives different running time for same inputs | 1 | stackoverflowdupquestions |
How do I make a Map<String, List<String> unmodifiable? | Unmodifiable List in java | Unmodifiable lists in java | 1 | stackoverflowdupquestions |
How can I write SQLite Real vals to Java BigDecimal values? | How can I store a BigDecimal (Java) value in a Real (SQlite) column? | BigDecimal with decimates value? | 1 | stackoverflowdupquestions |
If profiler is not the answer, what other choices do we have? | Can a profiler change how long recursive calls take to run in Java? | Running a java profiler | 1 | stackoverflowdupquestions |
Maven: how to query the executable classpath? | How can I create an executable JAR with dependencies using Maven? | How to use Maven classpath to run Java main class? | 1 | stackoverflowdupquestions |
>>> URI is not hierarchical | Java Jar file: use resource errors: URI is not hierarchical | URI not hierarchical need to use File class for a method | 1 | stackoverflowdupquestions |
Re-dispatch MouseEvent via JScrollPane abnormal behaviour | MouseEvent lost in JScrollPane | How to create a boolean local variable as a result of MouseEvent? | 1 | stackoverflowdupquestions |
GWT JPA - The response could not be deserialized | GWT error: The response could not be deserialized | Sort byte array of deserialized records in Java | 1 | stackoverflowdupquestions |
Spring Security with custom session timeout | Setting session timeout period with Spring Security 3.0 | Servlet Session timeout | 1 | stackoverflowdupquestions |
How to implement a real Singleton in Scala | How can I use a Scala singleton object in Java? | Scala's class to Java | 1 | stackoverflowdupquestions |
EJB, can't get injection in Json response method | EJB 3.1 @EJB Injection into POJO | EJB Injection error | 1 | stackoverflowdupquestions |
How do I set maximal jvm-memory (XMX) for a jar-file | How to set maximum JVM memory size (-Xmx) in my Java code? | How to Write a generic method to find the maximal element and invoke that method? | 1 | stackoverflowdupquestions |
Why is my swap method not working? | Java method to swap primitives | Swap two strings in an array, Java | 1 | stackoverflowdupquestions |
Jersey REST WS Error: "Missing dependency for method... at parameter at index X" | Jersey File Upload Service missing dependency error | Why Dependency Injenct only works in Resource class in jersey | 1 | stackoverflowdupquestions |
How to convert minutes to Hours and minutes (hh:mm) in java | How to convert minutes to HH:mm on android? | Difference between hh:mm a and HH:mm a | 1 | stackoverflowdupquestions |
Spring 3.0 - Unable to locate Spring NamespaceHandler for XML schema namespace [http://www.springframework.org/schema/security] | Error "Unable to locate Spring NamespaceHandler for XML schema namespace" | Spring Namespace Error | 1 | stackoverflowdupquestions |
Is there a CheckStyle rule to force if else keywords to be on the same line in an if/else ladder? | Is there any Checkstyle/PMD/Findbugs rule to force "else if" to be on the same line? | Using checkstyle to format code | 1 | stackoverflowdupquestions |
How to read into RDF file N-Turtle format using Jena Java APIs | Jena read from turtle fails | converting resultset to RDF/XML in Jena | 1 | stackoverflowdupquestions |
Safe publication through final | Java multi-threading & Safe Publication | Is this a safe publication of object? | 1 | stackoverflowdupquestions |
Interview question: Objects eligible for garbage collection | Number of objects eligible for garbage collection | Why does the specified object be eligible for garbage collection? | 1 | stackoverflowdupquestions |
Converting char array into byte array and back again | Converting char[] to byte[] | Converting a java byte array to a String | 1 | stackoverflowdupquestions |
Can we use Linq for geting value from collection object in java? | Is there something like LINQ for Java? | Geting XML form website? | 1 | stackoverflowdupquestions |
XX:+HeapDumpOnOutOfMemoryError Max file size limit | Usage of XX:HeapDumpSegmentSize and XX:SegmentedHeapDumpThreshold | How do I enter xx:xx in a 24-hour format without the ":" giving errors? | 1 | stackoverflowdupquestions |
Can't change JProgressBar color in Mac OS look and feel | How to change JProgressBar color? | JProgressBar not working properly | 1 | stackoverflowdupquestions |
Unable to install rJava in R 3.0 in Ubuntu 13.04 | Why does rJava not work on Ubuntu 14.04 using OpenJDK 7? | How to represent NA in rJava | 1 | stackoverflowdupquestions |
Hibernate + PostgreSQL + Network Address Type (inet, cdir) | PostgreSQL custom type + Hibernate mapping | Hibernate: PostgreSQL Driver issue | 1 | stackoverflowdupquestions |
How to read a file from a certain offset in Java? | How to set an offset with readline in java? | Offset and limit for a set | 1 | stackoverflowdupquestions |
overloading with both widening and boxing | Java Method Overloading with Boxing/Widening | Why are my views widening and then returning to normal during running of this code? | 1 | stackoverflowdupquestions |
Where to find source code for java.lang native methods? | Where is the source code for native java.lang.math methods in JDK 7? | How to find source code of native java function call | 1 | stackoverflowdupquestions |
In java generics what is the difference between the wildcard symbols: <? extends Object> and <? extends T> ? | what is the difference between 'super' and 'extends' in Java Generics | using extends with Java Generics | 1 | stackoverflowdupquestions |
Abstract class as parcelable | Android abstract parcelable class | Writing a List to Parcelable? | 1 | stackoverflowdupquestions |
UAC and Java | How do I elevate my UAC permissions from Java? | How can I write System preferences with Java? Can I invoke UAC? | 1 | stackoverflowdupquestions |
Raising a matrix to the power method JAVA | Multipying a Matrix by the same power using Java | Calculate the power of 2, java | 1 | stackoverflowdupquestions |
ANDROID: Parsing XML | Xml parsing issue in java android | Parsing xml files in android | 1 | stackoverflowdupquestions |
How can I catch AWT thread exceptions in Java? | Debug exceptions in AWT queue thread | Get the data from java.awt.List | 1 | stackoverflowdupquestions |
Update data only by difference between files (delta for java) | What Delta Encoding/Compression Algorithm libraries are there for Java? | GameLoop, What To Put For Delta? | 1 | stackoverflowdupquestions |
How to change font encoding when converting docx -> pdf with docx4j? | How to set a font for pdf output using Docx4J | Error when converting DOCX to PDF with Docx4j | 1 | stackoverflowdupquestions |
How to serialize a non-serializable in Java? | How to serialize a final field containing a non-serializable object | Serializable subclass of non-serializable parent class | 1 | stackoverflowdupquestions |
Using reflection to change static final File.separatorChar for unit testing? | Change private static final field using Java reflection | How can I check if a method is static using reflection? | 1 | stackoverflowdupquestions |
Why @FunctionalInterface annotation is added to Comparator interface in Java 8? | Why isn't @FunctionalInterface used on all the interfaces in the JDK that qualify? | How does this comparator class work? | 1 | stackoverflowdupquestions |
Missing artifact javax.transaction:jta:jar:1.0.1B ( Issue was different as you may see the resolution is different) | maven missing dependency jta-1.0.1b | How to catch a exception thrown inside of a JTA-Transaction? | 1 | stackoverflowdupquestions |
How to get current moment in ISO 8601 format with date, hour, and minute? | Java - long time to ISO_8601 string format | Parsing an ISO 8601 string local date-time as if in UTC | 1 | stackoverflowdupquestions |
Error: Application Server not specified - IntelliJ IDEA | How to configure correctly the JBoss in the Intellij IDEA? I get Error:server instance not specified | IntelliJ IDEA Error Running Application | 1 | stackoverflowdupquestions |
Fatal error compiling: invalid target release: 1.8 -> [Help 1] | Maven Compilation Error: Fatal error compiling: invalid target release: 1.8 | test-compile gives "invalid target release: 1.8" | 1 | stackoverflowdupquestions |
How to return a JSON object from a HashMap with Moxy and Jersey | Hashmap Example in Java using Jersey? | Umarshalling nested arrays with MOXy | 1 | stackoverflowdupquestions |
JDBC Class.forName vs DriverManager.registerDriver | Java Class.forName, JDBC connection loading driver | Using class.forName in JDBC | 1 | stackoverflowdupquestions |
Spring-ws: How to create Wsdl from an xsd with no "Request" element | Spring WS: How to get and save XSD validation errors | Using XSD file in WSDL | 1 | stackoverflowdupquestions |
Visual swing in Eclipse | eclipse visual editor | Create a Visual Studio type look using Java Swing | 1 | stackoverflowdupquestions |
Intellij IDEA: how to change the organize import feature | IntelliJ Organize Imports | How to organize printing text/output | 1 | stackoverflowdupquestions |
JSTL in IntelliJ gives errors in JSP | IntelliJ and JSP/JSTL cannot resolve taglib for JSTL in tomcat7 | Trying to do an OR test with JSTL inside my jsp template | 1 | stackoverflowdupquestions |
Why does servletContext.getRealPath returns null on tomcat 8? | What does servletcontext.getRealPath("/") mean and when should I use it | Servlet : What exactly the use of context.getRealPath(" "); | 1 | stackoverflowdupquestions |
Java nested generic type mismatch | java - Accssesing "nested" Generic type | Java nested generic type | 1 | stackoverflowdupquestions |
Using HTMLUnit to log into Facebook programmatically using Java | How to log into Facebook programmatically using Java? | Click() Function Not Working HtmlUnit | 1 | stackoverflowdupquestions |
Unable to insert rows into H2 database from Hibernate project | Error using Hibernate with H2 in memory database | How to connect to H2 database from Java & H2 DB | 1 | stackoverflowdupquestions |
How can I open/execute an external file from within java? | Execute external program in java | Java - Execute External Windows Applications? | 1 | stackoverflowdupquestions |
Not able to set LD_LIBRARY_PATH for Java process | LD_LIBRARY_PATH ignored on Android sometimes | g++, ld and JNI - linking problem | 1 | stackoverflowdupquestions |
Is it discouraged to use @Spy and @InjectMocks on the same field? | How to stub a method of an class annotated with @InjectMocks? | How can I mock methods of @InjectMocks class? | 1 | stackoverflowdupquestions |
What is phantom reference in java | When to use phantom references in Java? | Phantom reference not freed up during GC | 1 | stackoverflowdupquestions |
A way to bind Java Map<String, Object> to sql varchar in JDBI INSERT statement | Does JDBI accept UUID parameters? | JDBI's @BindBean doesn't find named parameters in bean class during INSERT | 1 | stackoverflowdupquestions |
How to Return an Object Via Static Factory Methods? | How to use "Static factory methods" instead of constructors? | Should Factory Class' create() method be static? Or make Factory Class singleton? | 1 | stackoverflowdupquestions |
How to implement batch operations with MyBatis/Spring? | MyBatis Batch Insert/Update For Oracle | How do I insert a java List<String> using Mybatis? | 1 | stackoverflowdupquestions |
What does @AttributeOverride mean? | what is AttributeOverride annotation used for in Hibernate | AttributeOverride set null value to unmapped field | 1 | stackoverflowdupquestions |
Setting Logback Appender path programmatically | What is the proper way to reference an pre-existing appender programatically in Logback? | Programatically add appender in logback/slf4j | 1 | stackoverflowdupquestions |
How do these two generic signatures for Collections.binarySearch differ? | Implement binary search using the `Collections.binarySearch` signature | binarySearch errors in Java | 1 | stackoverflowdupquestions |
Run MapReduce Job from a web application | Calling a mapreduce job from a simple java program | Run MapReduce job from separate driver class | 1 | stackoverflowdupquestions |
Creating shortcut links (.lnk) from Java | How do you create (and read) windows shortcut(.lnk file) in Java? | Create shortcut to .jar using java-code | 1 | stackoverflowdupquestions |
How to sign app on Mavericks with Xcode 5.0.2? | Unable to launch App built on Mavericks | How to forward port 80 to 8080 in os x mavericks | 1 | stackoverflowdupquestions |
How to limit JSpinner | JSpinner without negative values | problem with fireStateChanged() method for JSpinner | 1 | stackoverflowdupquestions |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.