All about Java programming

1. All about Java programming

/** @author Ryome */
/**All about Java programming (encapsulation, inheritance, polymorphism, interface, overload, override,
 *List / try-catch / exception / Javadoc)*/
package superHello;

import java.util.Arrays;
class HelloException extends Exception{private static final long serialVersionUID=1L;HelloException(String m){super(m);}}
interface SuperHelloWorld {public abstract String SuperHello() throws HelloException;}
abstract class Hello implements SuperHelloWorld{final String HELLO="Helloworld";private String hello;
Hello(){this.hello=HELLO;}Hello(String hello){this.hello=hello;}public abstract String SuperHello() throws HelloException;
public String getHello(){return hello;}}
class HelloWorld extends Hello {HelloWorld(){super();}@Override public String SuperHello() throws HelloException{return getHello();}}
public class HelloJava{
    /**main method@param args not used*/
	public static void main(String[] args){
		try {Arrays.asList(new HelloWorld().SuperHello()).forEach(System.out::println);}catch(HelloException e){}finally{}

--Copy the above sentence, specify S-JIS as the character code, save the folder name as superHello file name as, and execute it. ↓ ↓ Javaの全ての結果.png

2. Related

-[Easy-to-understand explanation! ] How to use Java instance -[Easy-to-understand explanation! ] How to use Java encapsulation -[Easy-to-understand explanation! ] How to use Java inheritance [Override explanation] -[Easy-to-understand explanation! ] How to use Java polymorphism -[Easy-to-understand explanation! ] How to use Java overload -[Easy-to-understand explanation! ] How to use ArrayList [Java] -[Even beginners can do it! ] How to write Javadoc

Recommended Posts

All about Java programming
About Java interface
[Java] About Java 12 features
[Java] About arrays
java programming basics
Something about java
About Java features
About Java threads
[Java] About interface
java Generic Programming
About Java class
About Java arrays
About java inheritance
About interface, java interface
About List [Java]
About java var
About Java literals
About Java commands
About Java log output
About Java functional interface
Java, about 2D arrays
Constraint programming in Java
About [Java] [StreamAPI] allMatch ()
About Java StringBuilder class
[Java] About Singleton Class
About Java method binding
[Java] About anonymous classes
About method splitting (Java)
[Java Silver] About initialization
Java programming basics practice-array
About Java Array List
About inheritance (Java Silver)
Java programming (class method)
About Java String class
About Java access modifiers
About Java lambda expressions
Personal summary about Java
[Java] About enum type
Java programming (class structure)
java competitive programming memo
About java abstract class
Java Programming Thread Runnable
A note about Java GC
What I researched about Java 8
About an instance of java
What I researched about Java 6
Amazing Java programming (let's stop)
[Gradle] About Java plug-in tasks
Java programming (variables and data)
About Java variable declaration statements
What I researched about Java 9
[Java] About try-catch exception handling
About Java class loader types
Java Development Basics-Practice ③ Advanced Programming-
Java programming basics practice-for statement
[Java Silver] About equals method
[Java] About String and StringBuilder
What I researched about Java 7
Java programming basics practice-switch statement
About Alibaba Java Coding Guidelines
Enumeration of all combinations Java