public static void main(String[] args)

Here`s the next line of code. public class abc { public static void main(String[] args) {……}} Whats happening here is that we are creating a method in the app class. A method in Object-Oriented Programming is like a function or subroutine in standard programming- it`s a block of code that you can pass control to … Read more

Writing Java code: Creating an application

public class app { public static void main(String[] args) { System.out.println(“Hello world”); } } If you are new to Java, this might look strange to you. The idea here is that this application will print out the text “Hello world” when you compile and run it. for example, here`s how it looks in a DOS … Read more

What is JSP?

JSP Java Server Page (JSP) technology allow web developers and designers to rapidly develop and easily maintain, information-rich, dynamic web pages that leverage existing business system. As part of the java technology family, JSP technology enables rapid development of web-based applications that are platform-independent. JSP technology separates the user interface from content generation, enabling designers … Read more

What is J2ME?

J2ME J2ME (java 2 mobile edition), a java-based runtime platform created by sun microsystems, allows java application to run on embedded device, such as cellular telephones and personal digital assistants (PDAs). J2ME also is a competitor to the microsoft .NET Compact framework. The J2ME provides a robust, flexible environment for applications running on consumer devices, … Read more

Life Cycle of an Applet IN JAVA

The creation of any applet requires the implementation of four methods of the Applet class. These methods have been discussed in the below. init: This method is planned for whatever introduction is required for your applet. It is called after the param labels inside the applet tag have been transformed. start: This method is naturally … Read more

Interfaces and Packages in Java

Abstract methods when brought together form a package. A class actualizes an interface, consequently inheriting the interface’s abstract methods. An interface is not a class. Composing an interface is like composing a class. However, they are two separate ideas. A class portrays the properties and behaviours of an object. On the other hand, An interface … Read more

Creating An Exception in Java

You can make your own exemptions in Java. Remember the accompanying focuses when composing your classes for exceptions: All exemptions must be an offspring of Throwable. If you need to compose a checked exemption that is naturally authorized by the Handle or Declare Rule, you have to create an extension of the Exception class. If … Read more

File Handling in Java

All the classes that you may require on a day to day I/O programming basis are contained in the package java.io. The streams present in this package broadly represent output and input locations. Moreover, the streams supported in Java include object, primitives and localized characters. A stream can simply be described as data, arranged in … Read more

The Arrays Class in Java

The java.util.arrays class contains different functions for sorting and seeking values from array, looking at arrays, and filling components into arrays. These functions are available for all primitive data types. public static boolean equals(long[] a, long[] a2) – returns true if the two indicated arrays are equivalent to each other. Two arrays are viewed as … Read more