The main objective of software coding is to produce quality software applications. 但, to do that, the software code, which we will refer as codebase, must tick certain checkpoints such as code reviews, technical debt, design flaw review, bugs or…
Serialization in java – How it works?
Object serialization is the ability of the object to save a complete copy of it and any other objects that it references to an output stream (external file); so that the object can be recreated from the serialized copy at…
How to write Java annotations?
In this article we will discuss about annotations and how they can be used in practical programming. First, we will discuss some conceptual ideas and then jump into coding to write an example program using annotations. Motivation: In Java programming,…
Steps to integrate facebook with Java
概觀: Social media like facebook, linked-in, twitter are become popular for web marketing. The exposure to social media has a tremendous impact on different fields of marketing, promotion etc. In this article we will discuss facebook integration with java application.…
Accessors and Mutators in Java- How it works?
概觀: In this article we will discuss about java accessors. Accessors are basically member functions which are used to access and manipulate field values. We will also discuss the advantages and disadvantages of using accessors in java application. 介紹: Accessors…
How to secure web application using JAAS?
概觀: Security is one of the main aspects in web applications. So the success of web application depends on the security implementation also. And for mission critical applications, 安全方面,必須實施和測試它進入前…
Let’s clone in Java
Introduction The Cloneable interface in java is a marker interface. It does have any method. But if we write a class as below, it gives a message to the jvm that the class can be cloned. The following code shows…
Steps to create recurring tasks in Java
概觀: In this document, we will discuss about scheduling tasks in java application. There are different ways to implement recurring tasks and we will discuss some of them here. Java provides various APIs to implement recurring tasks and we will…
Java Reflection, Introspection and Customization – 簡
概觀: In this document we will talk about reflection, introspection and customization in Java beans. These are the important aspects of Java programming language using which we achieve the dynamism at runtime. 介紹: 反思與自省是兩個重要的特徵…
Servlet context listeners – How to use?
概觀: In this article we will talk about the servlet context listeners. Servlet context listener is an interface which receives notification events about the serlvet context lifecycle changes. Servlet Context listeners are also used to initialize database connections, 記錄和…
What is the advantage of using Java Stack Variables?
堆棧變量在這篇文章中,我們將討論不同的方式在Java中聲明變量和優勢與劣勢使用本地變量或堆棧變量. 在java, 有堆棧變量和其他類型之間的差異…
如何自動使用Java和Ant構建過程?
概觀: 在本文中,我們將討論有關構建工具Ant和使用這個我們如何可以自動執行基於Java應用程序的構建機制. 在當今時代,螞蟻已經成為Java開發的一個組成部分. 大多數客戶…
深複製或Java中的淺複製 - 如何選擇?
概觀: 在這篇文章中,我們將討論在複製Java對象的過程. 複製的目的,可以不同基於應用需求. 但主要有兩種類型的複製, 深,淺拷貝. “…