aboutsummaryrefslogtreecommitdiff
path: root/Code/Java/Func_abc.java
diff options
context:
space:
mode:
Diffstat (limited to 'Code/Java/Func_abc.java')
-rw-r--r--Code/Java/Func_abc.java26
1 files changed, 26 insertions, 0 deletions
diff --git a/Code/Java/Func_abc.java b/Code/Java/Func_abc.java
new file mode 100644
index 000000000000..c14012e4988e
--- /dev/null
+++ b/Code/Java/Func_abc.java
@@ -0,0 +1,26 @@
+public class Func_abc {
+ public static void func_c() {
+ System.out.println("Function C");
+ try {
+ Thread.currentThread().sleep(1000);
+ } catch (Exception e) { }
+ }
+ public static void func_b() {
+ System.out.println("Function B");
+ try {
+ Thread.currentThread().sleep(1000);
+ } catch (Exception e) { }
+ func_c();
+ }
+ public static void func_a() {
+ System.out.println("Function A");
+ try {
+ Thread.currentThread().sleep(1000);
+ } catch (Exception e) { }
+ func_b();
+ }
+
+ public static void main(String[] args) {
+ func_a();
+ }
+}