admin

JAR Java ARchive Files

JAR Java ARchive Files Introduction JAR is an acronym for Java ARchive. It is the zipping technique of Java. Always, the zipping styles are platform-dependent. A WinZip file can be zipped and unzipped on Windows platform only. The Java files, which are platform-independent, zipped with WinZip makes them platform-dependent (opens on Windows platform only). To …

JAR Java ARchive Files Read More »

class Character

Introduction The java.lang.Character class includes many useful static methods with which text (or characters) can be manipulated. The other text manipulating classes are String, StringBuffer, StringTokenizer and StringBuilder. The Character class is a wrapper class for char data type. That is, a Character object represents char as an object; it gives an object form to …

class Character Read More »

isDaemon isAlive isInterrupted getThreadGroup

isDaemon isAlive isInterrupted getThreadGroup Summary: So far, we studied the methods like sleep(), start() and currentThread() etc. of Thread class. Let us study some more, very less used by the Programmers, like methods isDaemon isAlive isInterrupted getThreadGroup etc. Program with Methods isDaemon isAlive isInterrupted getThreadGroup : public class MoreMethods { public static void main(String args[]) …

isDaemon isAlive isInterrupted getThreadGroup Read More »

instanceof Java Keyword

Introduction The instanceof keyword is very useful to know whether an object belongs to which class. The instanceof evaluates to true if an object belongs to a specified class or its super class; else raises compilation error. The following program illustrates. public class InstanceDemo { public static void main(String args[]) { String s1 = “hello”; …

instanceof Java Keyword Read More »

Java Versions

Java Versions or JDK Versions What is Java Version? Java is not developed by a single man, but developed by a team of engineers belonging to the corporate giant Sun Microsystems. The development never ends; it goes on. The engineers at Sun Microsystems watch the market demands everyday and adds more classes to the existing …

Java Versions Read More »

Object class

Introduction Object class has got very prominence in Java programming. In inheritance, it sits at the top of the hierarchy. That is, any Java class, either you write or predefined, should be a subclass of Object class. If you write any class, Java implicitly extends Object class. Why this? Java designers thought that some methods …

Object class Read More »

toString() method Convert Object to String form

About toString() method Summary: Java comes with two styles of converting object into string form. "toString() method Convert Object to String form" discusses using toString() method. We discussed toString() method in String class to some extent. Let us go more detailed here. toString() of Object class converts only objects into string form (remember, valueOf() of …

toString() method Convert Object to String form Read More »

Java Abstract Class Tutorial Example

Java Abstract Class Tutorial Example Summary: By the end of this tutorial "Java Abstract Class Tutorial Example", you will be comfortable to practice abstract methods and abstract classes. abstract Modifier You have seen earlier two access modifiers – static and final. Now let us go for another modifier "abstract". "abstract" modifier (and also keyword) can …

Java Abstract Class Tutorial Example Read More »

class GregorianCalendar

GregorianCalendar is a concrete class, a subclass of abstract class Calendar. The GregorianCalendar class represents the calendar we use everyday. It is used to manipulate date and retrieve date particulars. This was introduced with JDK 1.1. Following statement gives the class signature public class GregorianCalendar extends Calendar Following program illustrates the usage of a few …

class GregorianCalendar Read More »