Java @ Desk
- Website
- javacodeimpl.blogspot.de · all feeds from this site
- Feed URL
https://javacodeimpl.blogspot.com/feeds/posts/default
Read it in your FeedListing reader
Or add to: Feedly Inoreader Raw feed
Latest posts
-
Jquery show hide by id in Javascript
Jquery show hide in Javascript show and hide the UI elements using the id attribute of the html element. hide() - Jquery method to hide the field show() - Jquery method to show the field To use the inbuilt function in JS, following library must be included in the HTML file 1)…
-
How can we create a deep copy of an object in Java
How can we create a deep copy of an object in Java? Copying objects in Java There are two ways of creating copies of objects (and arrays) in Java: 1. Shallow Copy 2. Deep Copy What is "Deep Copy"? A deep copy copies all fields, and makes copies of inner objects as well (unlike…
-
Producer Consumer in Java using BlockingQueue
Producer Consumer in Java using BlockingQueue What is Producer Consumer in Java? Producer - A producer in Java is a thread that runs independently that produces something that is going to be consumed by a single Consumer or a group of Consumers. Consumer - A Consumer in Java is…
-
Java List ArrayList override equals method
Java List/ArrayList override contains method using equals java.util.List() - A List is an ordered collection i.e. it maintains the insertion order. List is allowed to contain duplicate elements in it. java.util.ArrayList() - This class implemented the list interface methods.…
-
Marquee in HTML
Marquee allows a scrolling text in an HTML file. Attributes : 1) behavior - This attribute defines the way the text will scroll withing the marquee. Values can ve scroll, slide or alternate. 2) bgcolor - To set the background color for marquee. 3) direction - Sets the direction…
-
Redirect a Page or URL using javascript
Redirect a Page or URL using javascript What is Redirect? Redirect is something, the user requests for some JSP page but internally the user gets redirected to some other page within the application or outside the application. Reasons for redirect: 1) Domain Name change - There…
-
Spring InitializingBean interface init bean annotation
Spring InitializingBean interface init bean annotation A bean configured in spring configuration file gets initialized when the file gets loaded in the spring container. There may arise a case where something needs to be initialized on bean initialization or needs to be…
-
Spring @PostConstruct & @PreDestroy init bean method annotation
Spring @PostConstruct & @PreDestroy init bean method annotation A bean configured in spring configuration file gets initialized when the file gets loaded in the spring container. There may arise a case where something needs to be initialized on bean initialization or needs to be…
-
JSP implicit objects REQUEST with example
JSP implicit objects REQUEST with example In all there are 9 implicit JSP objects. In our last posts, we have learned JSP implicit objects OUT with example , JSP Implicit Object CONFIG with example , JSP Implicit Object APPLICATION with example , JSP Implicit object session with…
-
JSP implicit objects OUT with example
JSP implicit objects OUT with example In our last posts, we have learned JSP implicit objects REQUEST with example , JSP Implicit Object CONFIG with example , JSP Implicit Object APPLICATION with example , JSP Implicit object session with example , JSP implicit object…
-
Drools DRL Date comparision syntax in LHS
Drools DRL Date comparision syntax in LHS There are three ways to compare Date in LHS part of DRL rule as shown below : a) Using '>' greater than or '>' less than operator b) Using java.util.Date class methods .after() and .before() c) Using java.util.Date class methods…
-
Drools lock-on-active vs no-loop
Drools difference between lock-on-active and no-loop no-loop & lock-on-active are the two most important features in drools. If oyu are writing complex rules within the application, these two features would be of high use. Both these features comes into picture when any rule…
-
Drools Update, Modify Infinite Loop Execution-Resolved
Drools Update, Modify Infinite Loop Execution When we use update or modify in a DRL file, we fall into the infinite looping issue many number of times. There arise a case where the update or modify need to get called so that other rules can use the modified value. But as soon as…
-
Java File Delete and DeleteOnExit
Java File Delete and DeleteOnExit To delete a file in java, following package is getting used 1) import java.io.File - To handle file operations 2) import java.io.IOException - To handle any exceptions occur during the directory operation While creating a directory, following…
-
Java Create Single Directory and Multiple Directories
Java Create Single Directory and Multiple Directories To create a new directory in java, following package is getting used 1) import java.io.File - To handle file operations 2) import java.io.IOException - To handle any exceptions occur during the directory operation While…
-
Java Create New File
Java Create New File To create a new file in java, following package is getting used 1) import java.io.File - To handle file operations 2) import java.io.IOException - To handle any exceptions occur during the file operation While creating a file, following things need to be…
-
Reflection call getter methods of Pojo java
Reflection call getter methods of Pojo Consider a scenario where a POJO consists of 100's of fields with getters and setters. And you want to display values of all the fields. To achieve this, writing System.out.println for each getter would be a very tedioius job as shown below…
-
Java JDBC SQL Update PreparedStatement a record
Java JDBC SQL Update a record example To insert a record in database in SQL using JDBC, you need to perform below mentioned steps: 1) Create the database connection. There are two ways to get the DB connection. One is through java.sql.DriverManager and another is through…
-
Drools DRL alternatives of eval is Boolean check
Drools DRL alternatives of eval is Boolean check In DRL, the boolean check is implemented using the eval() function. Eval is used in following ways : 1) eval can have a method call returning a boolean value 2) eval can perform equality/non-equality operations on fields. But the…
-
Java JDBC SQL Sorting Column Order By Clause
Java JDBC SQL Sorting Column Order By Clause Sorting a column is done using the Order By clause in SQL. Sorting a column can be done using following keyword: 1) Order By asc - Display the result in ascending order for the 2) Order By desc - Display the result in descending order…