• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1.class public LMain;
2.super Ljava/lang/Object;
3.implements LInterface;
4
5#expected output:
6#in interfaceMethod()
7
8.method public constructor <init>()V
9    .registers 1
10    invoke-direct {p0}, Ljava/lang/Object;-><init>()V
11    return-void
12.end method
13
14.method public static main([Ljava/lang/String;)V
15    .registers 3
16
17    sget-object v0, Ljava/lang/System;->out:Ljava/io/PrintStream;
18
19    new-instance v1, LMain;
20    invoke-direct {v1}, LMain;-><init>()V
21    invoke-interface {v1}, LInterface;->interfaceMethod()Ljava/lang/String;
22    move-result-object v1
23
24    invoke-virtual {v0, v1}, Ljava/io/PrintStream;->println(Ljava/lang/Object;)V
25
26    return-void
27.end method
28
29
30.method public interfaceMethod()Ljava/lang/String;
31    .registers 1
32
33    const-string v0, "in interfaceMethod()"
34    return-object v0
35.end method