社区
Java
帖子详情
class A{ B one;} class B{ A one;} 请问能通过编译吗?有什么解决方法?
blackdargn003
2007-10-17 08:02:16
class A{ B one;} class B{ A one;} 请问能通过编译吗?有什么解决方法?
...全文
68
7
打赏
收藏
class A{ B one;} class B{ A one;} 请问能通过编译吗?有什么解决方法?
class A{ B one;} class B{ A one;} 请问能通过编译吗?有什么解决方法?
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
7 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
qiuqiupeng
2007-10-25
打赏
举报
回复
实践是检验真理的唯一标准。
manbaum
2007-10-25
打赏
举报
回复
2楼的,你那个是java语法么?有标准的语法你不写,非要自创啊?谁看得懂啊?
ataox
2007-10-25
打赏
举报
回复
javac *.java subdir1\*.java subdir2\*.java ....
Yanbin_Q
2007-10-23
打赏
举报
回复
请问你试过没有
Yanbin_Q
2007-10-23
打赏
举报
回复
[size=24px]
请问你试过没有![/
size]
blackdargn003
2007-10-18
打赏
举报
回复
问题解决,谢谢你!!!!!!!!!!!!!!!!!!!!!!!!
但 对与于下面的我无法编译:
//package com.oozinoz.iterator==={CompositeIterator}
//package com.oozinoz.process===={Process*********}
//------>需要么个类
CompositeIterator------>ProcessComponent----->ProcessVisitor-------->
{
ProcessAlternation ----->extends ProcessComposite------->CompositeIterator****进入循环?
ProcessSequence--------->extends ProcessComposite------->****进入循环?
ProcessStep------------->extends ProcessComponent------->****进入循环?
}
请问这个循环能编译吗?
闲云的的
2007-10-17
打赏
举报
回复
可以啊 , 如果用开发工具就很方便 比如eclipse
如果用命令行,可以直接用 javac *.java
java反
编译
工具jad 1.5.8g(可以反
编译
jdk1.5,1.6)
java反
编译
工具jad 1.5.8g支持 jdk1.5,jdk1.6。说明很多记住一个万能的命令基本就够用了。jad -sjava -r -8 -o **\*.
class
---------------This is README file for Jad - the fast Java Decompiler.Jad home page: http://www.kpdus.com/jad.htmlCopyright 2001 Pavel Kouznetsov (jad@kpdus.com).0. Please read the disclaimer on the Jad home page.1. Installation.Unzip jad.zip file into any appropriate directory on your hard drive.This will create two files: - an executable file named 'jad.exe' (Windows *) or 'jad' (*n*x) - this README fileNo other setup is required.2. How to use JadTo decompile a single JAVA
class
file 'example1.
class
' type the following: jad example1.
class
This command creates file 'example1.jad' in the current directory.If such file already exists Jad asks whether you want to overwrite it or not.Option -o permits overwriting without a confirmation.You can omit .
class
extension and/or use wildcards in the names ofinput files.Option -s allows to change output file extension: jad -sjava example1.
class
This command creates file 'example1.java'. Be careful when usingoptions -o and -sjava together, because Jad can accidentally overwriteyour own source files.Jad uses JAVA
class
name as an output file name. For example, if
class
file 'example1.
class
' contains JAVA
class
'test1' then Jad will createfile 'test1.jad' rather than 'example1.jad'. If you want to specifyyour own output file name use the output redirection: jad -p example1.
class
> myexm1.javaOption -d allows you to specify another directory for output files,which are created, by default, in the current directory. For example: jad -o -dtest -sjava *.
class
(or jad -o -d test -s java *.
class
, which has the same effect)This command decompiles all .
class
files in the current directory <
java print(b)_给定如下Java程序,
class
A{ public A(){ System.out.print("A"); } }
class
B extends A{ public ...
【单选题】java程序的执行过程中用到一套JDK工具,其中java.exe指()【单选题】在//point x处的哪个声明是合法的?
class
Person{private int a;public int change(int m){return m;}}public
class
Teacher extends Person{public int b;public static void mai...
彻底搞懂python元类meta
class
彻底了解python元类meta
class
: 如何用type创建类 什么是元类及元类如何定义 案例:wtforms源码分析 案例:元类实现单例模式
java习题整理之四带解析
1、下列关于继承的描述中,错误的是() A、在Java中,类只支持单继承,不允许多重继承,也就是说一个类只能有一个直接父类 B、多个类可以继承一个父类 C、在Java中,多层继承是可以的,即一个类的父类可以再去继承另外的父类,例如C类继承自B类,而B类又可以去继承A类,这时,C类也可称作A类的子类 D、Java是支持多继承的 2、已知类的继承关系如下:
class
A
class
B extends A
class
C extends A 则以下语句能通过
编译
的是( ) A、A a=new B();
Java程序设计 Java语言基础 基础知识题
2-1 以下程序段的输出结果是
class
Test { public static void main(String[] args) { System.out.println(4 + 5 + “” + 3 + 6); } } A. 99 B. 4536 C. 936 D. 459 2-2 设有变量定义: short a = 300; 则以下哪一条语句会导致
编译
错误? A. a += 3; B. a = (short)a + 3; C. a = (byte)(a + 3); D. a = (short)(a
Java
50,545
社区成员
85,620
社区内容
发帖
与我相关
我的任务
Java
Java相关技术讨论
复制链接
扫一扫
分享
社区描述
Java相关技术讨论
java
spring boot
spring cloud
技术论坛(原bbs)
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章