can we create a class inside a class in java
Yes you can
class OuterClass {
class InnerClass {
}
}
can we create a class inside a class in java
Yes you can
class OuterClass {
class InnerClass {
}
}
java class creation inside method
public class ASimplisticTCPFiniteStateMachine_FSM_ {
public static void main(String[] args) {
class Lmao_It_Exists {
public void main() {
System.out.println("Hello World");
}
}
new Lmao_It_Exists().main();
}
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us