java中把伪代码写成这样,语法有错误吗

java中把伪代码写成这样,语法有错误吗

问题描述:

public Class A {

A a = new A ();

public a A () {

return a;}

public A getA(){return this.a;};