Shailesh Pratapwar

1

votes
2

answer
319

views

When to choose SerialGC, ParallelGC over CMS, G1 in Java?

In Java 9, G1 GC is the default Garbage collector. As of now, I heard of some people preferring CMS garbage collector over G1GC as it seems to be not stable and has some nasty bugs. What happened with ParallelGC (no buzz these days) ? Is there any use case in which we would like to prefer ParallelG...
Shailesh Pratapwar
1

votes
1

answer
37

views

Java Multithreading context switch on windows vs unix

While I was going through a book 'The Complete Reference Java Ninth Edition', I come to know about a fact related to context switching in java threads. Following is the excerpt: In cases where two threads with the same priority are competing for CPU cycles, the situation is a bit complicated. For op...
1

votes
1

answer
43

views

Safely using CyclicBarrier.reset

In CyclicBarrier.reset javadocs, following is mentioned. Note that resets after a breakage has occurred for other reasons can be complicated to carry out; threads need to re-synchronize in some other way, and choose one to perform the reset Considering above hint, if I make sure barrier is not broke...
1

votes
1

answer
42

views

How to get actual phrase user said for failed utterance?

The Alexa Analytics dashboard provide a view of how many utterance are successful and how many are failed as like below. But I can't drill down to see what exact phrase customer used for my failed utterance. In addition, Alexa does not provide any feature to programatically get what exact phrase use...
Shailesh Pratapwar
0

votes
0

answer
12

views

Oracle CLOB vs BLOB

I want to know what does Oracle's CLOB has to offer over BLOB data type. Both have data storage limits of 4GB. A text string which is longer than 4000 bytes can not fit in VARCHAR2 column. Now, I can use CLOB and BLOB as well to store this string. Everyone says, CLOB is good and meant for character...
6

votes
4

answer
25.2k

views

How to do Pagination with mybatis?

I am currently working on a ecommerce application where I have to show a list of available products using search functionality. As with every search, I have to implement Pagination here. I am using mybatis as my ORM tool and mysql as an underlying database. Googling around I found following ways to...
3

votes
3

answer
1.1k

views

Browse Corda database tables using H2 web interface shows synonyms errors

I followed the instructions at this link to browse corda database. However, I am getting below errors when I queried for tables. Error: Table 'SYNONYMS' not found; SQL statement: SELECT TABLE_CAT, TABLE_SCHEM, TABLE_NAME, TABLE_TYPE, REMARKS, TYPE_CAT, TYPE_SCHEM, TYPE_NAME, SELF_REFERENCING_COL_NA...
3

votes
2

answer
351

views

Corda R3 DeployNodes command is failing for example cordapp

I have downloaded the source code of example cordapp from here. I am getting following error when I give the command : gradle deployNodes. Please guide me on what can be done. Note: This is Corda V3. > Task :java-source:deployNodes Bootstrapping local network in C:\Blockchain\cordapp-example-releas...
39

votes
1

answer
1.1k

views

Calling default method in interface when having conflict with private method

Consider below class hierarchy. class ClassA { private void hello() { System.out.println('Hello from A'); } } interface Myinterface { default void hello() { System.out.println('Hello from Interface'); } } class ClassB extends ClassA implements Myinterface { } public class Test { public static void m...
7

votes
2

answer
60

views

Creating indexes on columns where primary key or unique key constraints already present

I am currently learning indexes in Oracle. In Oracle documentation, following can be found : Although the database creates an index for you on a column with an integrity constraint, explicitly creating an index on such a column is recommended. Can anybody here tell me the rationale behind this ? If...
1

votes
1

answer
235

views

Corda State class Participants list significance

I am working on a cordap which involves 3 parties (Nodes) viz. A, B, C. There are 2 flows as : Flow 1: A to B Issuance Flow Value of participants field in State object : listOf(A, B) Result : Latest states are visible in node A and node B Flow 2: B to C Transfer Flow Value of participants field in S...
1

votes
1

answer
2k

views

Which JSF implementation to choose? [closed]

I have just started working on developement of a java web-app. I have to use JSF framework in its web tier. Googling around I do see number of implementations of JSF out there viz. Apache Myfaces, Jboss Primefaces etc. Can anyone guide me please on Which implementation is now be called as best fro...
2

votes
2

answer
2.3k

views

Dynamically applying filter to list of products in ecommerce application

I need some of your inputs in deciding a right approach in following case. I am currently working on a ecommerce application ( An online shopping website). Here, on homepage of application, I have to display a list of products available in shop. The end user has a facility of applying a filter to pr...
5

votes
1

answer
493

views

Difference between Phaser and CyclicBarrier

I stumbled upon a doubt regarding a difference between CyclicBarrier and Phaser utilities in Java concurrent package. I understand that CyclicBarrier allows group of threads to wait until all threads arrive at a specific point. Phaser also do same but it supports multiple phases. I also understand t...
-2

votes
1

answer
55

views

Is this a valid binary search tree?

10 / \ / \ 9 13 / \ / \ 5 12 If No, why ? If yes, why inorder traversal (5,9,12,10,13) on this don't results in a sorted sequence of nodes ? Note: The leaf 5 is left child of 9 and leaf 12 is right child of 9.