JAVA EXAMPLE PROGRAMS

JAVA EXAMPLE PROGRAMS

Publish Your Article Here

Java Fundamentals


Description:

Here we are trying to give examples for java fundamentals like data types, java variables, static variables, static methods, static blocks, arrays, enum, wrapper classes, etc.

  1. Data Types
  2. Variables
  3. Static variables, methods and static block
  4. Java Static Import
  5. Arrays
  6. Java Loops
  7. Java Enum
  8. Java Integer Wrapper Class
  9. Java Boolean Wrapper Class
  10. Java Math Class Examples
  11. Java ProcessBuilder Class Examples
Knowledge Centre
What is abstract class or abstract method?
We cannot create instance for an abstract class. We can able to create instance for its subclass only. By specifying abstract keyword just before class, we can make a class as abstract class.

public abstract class MyAbstractClass{

}

Abstract class may or may not contains abstract methods. Abstract method is just method signature, it does not containes any implementation. Its subclass must provide implementation for abstract methods. Abstract methods are looks like as given below:

public abstract int getLength();
Famous Quotations
Be yourself; everyone else is already taken.
-- Oscar Wilde

About Author

Most Visited Pages

Other Interesting Sites

Reference: Java™ Platform Standard Ed. 7 - API Specification | Java is registered trademark of Oracle.
Privacy Policy | Copyright © 2017 by Nataraja Gootooru. All Rights Reserved.