Category Archives: Java Programming
Securing an application now a days is not an easy task. To secure an application there are steps that we can take to mitigate the risk of security failures. In Java, security of an application is related to running our application under some protection of a security manager. To do this we must have a […]
Continue Reading: Security Requirements of a Java Application →Distributed applications are a vital necessity of our times. For creating distributed applications in Java we use RMI (Remote Method Invocation) and EJB (Enterprise Java Beans). We can access files by calling the methods from any machine (known as Remote Machine) on Internet. Java was designed with the distributed environment and it can be transmitted over […]
Continue Reading: RMI (Remote Method Invocation) in Java →All objects created by a running Java application are stored in the Java Virtual Machine’s heap memory. Once objects are created they are never freed by the code itself as Java has Garbage Collection process which is the process of automatically freeing objects that are no longer referenced or used by the program. The name […]
Continue Reading: Memory Management in Java →The term Cloning refers to creating duplicate copies. In software parlance it describes a number of processes that can be used to produce identical copies of an object. Java provides us an interface named java.lang.Cloneable, which does the same thing i.e. it creates an exact copy of the original object. In Java, it refers to […]
Continue Reading: An Introduction to Cloning In Java →With implementation of object serialization (Object Persistence), a java applications can save and load the state of objects to disk or over a network. In this article we will look into benefits/advantages of object serialization in java and how to implement this in our programs. One of the most critical tasks in Java is serialization of an […]
Continue Reading: Demystifying Object Serialization in Java →Do you think that Interfaces in Java inherit the members of the Object class? If NOT then how do you call many Object class methods on a reference of an interface type? Shouldn’t it be a compile-time error? Let’s try to understand what actually helps the compiler to know the signature of these Object class methods. And if you think your answer to the question is YES then how do you justify the fact that interfaces in Java don’t contain code, but only the signature. Does the rule changes in this case? Okay, so we have plenty of questions coming up irrespective of whether your answer is YES or NO. Let’s try to understand what internally happens.
Continue Reading: Do Interfaces Really Inherit the Object Class In Java? →JAAS delivers a framework for providing a mechanism to verify the client and to ensure that the client has the permissions required to approach a secured resource for all the Java applications. The Security agency on the Server side uses the same authentication information to accomplish a JAAS login in to the server side.
Continue Reading: Java Authentication and Authorization Service →Java 6.0 introduces many Application Programming Interfaces and there are many enhancements in existing classes especially in collection APIs. The summary of changes in collection framework is listed below.
Continue Reading: Java 6.0 APIs →One of the beauties of using Java programming language is that the programmers need not worry about the memory allocation and freeing of objects. We simply declare and initialize objects and JVM(Java Virtual Machine) will take care of freeing them when they are no longer in use by any application through a mechanism called ‘garbage collection’. Before we start our topic, let us check how the memory is allocated for the objects.
Continue Reading: Memory Leaks in Java →What is garbage collection? It deals with identifying and freeing the memory of java application that are not used for a long time. There are two type garbage collection techniques, namely explicit and implicit methods. Implicit Garbage collection and Explicit Garbage collection Java run time system can invoke the garbage collector automatically so that the […]
Continue Reading: Java Garbage Collection →