Refleksi php dapatkan tipe pengembalian

Laminas\Server\Reflection_ menyediakan mekanisme standar untuk melakukan fungsi dan introspeksi kelas untuk digunakan dengan kelas server. Ini didasarkan pada API Refleksi PHP, menambahnya dengan metode untuk mengambil parameter dan mengembalikan tipe dan deskripsi nilai, daftar lengkap prototipe fungsi dan metode (i. e. , semua kemungkinan kombinasi pemanggilan yang valid), dan deskripsi fungsi atau metode

Show

Biasanya, fungsi ini hanya akan digunakan oleh pengembang kelas server bergaya RPC untuk kerangka kerja

Penggunaan

Penggunaan dasar adalah sebagai berikut

use My\Entity;
use Laminas\Server\Reflection;

$class    = Reflection::reflectClass(Entity::class);
$function = Reflection::reflectFunction('my_function');

// Get prototypes
$prototypes = $function->getPrototypes();

// Loop through each prototype for the function
foreach ($prototypes as $prototype) {

    // Get prototype return type
    printf("Return type: %s\n", $prototype->getReturnType());

    // Get prototype parameters
    $parameters = $prototype->getParameters();

    echo "Parameters: \n";
    foreach ($parameters as $parameter) {
        // Get parameter type
        printf("    %s\n", $parameter->getType());
    }
}

// Get namespace for a class, function, or method.
// Namespaces may be set at instantiation time (second argument), or using
// setNamespace().
$class->getNamespace();

reflectFunction() mengembalikan objek Laminas\Server\Reflection\Function; . Silakan lihat dokumentasi API untuk melihat metode apa yang tersedia untuk masing-masing

paket com. w3spoint; . keluar. println(pesan);

Tes Refleksi. Jawa

package com.w3spoint;
 
import java.lang.reflect.Method;
 
public class ReflectionTest {
	public static void main(String args[]){
		try {
			Class c=Class.forName("com.w3spoint.TestClass");  
			Method method = c.getMethod("display", String.class);
			System.out.println("Return Type: " + method.getReturnType());
		} catch (Exception e) {
			e.printStackTrace();
		}  
	}
}
_

paket com. w3spoint; . lang. mencerminkan. Metode; . forName("com. w3spoint. TestClass"); Metode metode = c. getMethod("tampilan", String. kelas); . keluar. println("Tipe Pengembalian. " + metode. getReturnType()); . printStackTrace();

Tag sudah ada dengan nama cabang yang diberikan. Banyak perintah Git menerima nama tag dan cabang, jadi membuat cabang ini dapat menyebabkan perilaku yang tidak diharapkan. Anda yakin ingin membuat cabang ini?

Kelas Metode. metode getReturnType() di Java

Meningkatkan Artikel

Simpan Artikel

Seperti Artikel

  • Terakhir Diperbarui. 12 November 2021

  • Membaca
  • Membahas
  • Kursus
  • Praktik
  • Video
  • Meningkatkan Artikel

    Simpan Artikel

    Prasyarat. Jawa. lang. Kelas kelas di Jawa. Set 1, Jawa. lang. Kelas kelas di Jawa. Atur 2
    Jawa. lang. Kelas reflectMethod membantu dalam mendapatkan informasi tentang metode tunggal pada kelas atau antarmuka. Kelas ini juga menyediakan akses ke metode kelas dan memanggilnya saat runtime.  
    Metode getReturnType() dari kelas Metode
    Setiap Metode memiliki tipe pengembalian apakah itu void, int, double, string atau tipe data lainnya. Metode getReturnType() dari kelas Metode mengembalikan objek Kelas yang mewakili tipe pengembalian, dideklarasikan dalam metode pada saat membuat metode
    Sintaksis.  
     

    public Class getReturnType()

    Parameter. Metode ini tidak mengambil parameter apa pun
    Nilai Pengembalian. Metode mengembalikan objek Kelas yang mewakili tipe pengembalian formal dari objek metode
    Program di bawah ini mengilustrasikan metode getReturnType() dari kelas Metode
    Program 1. Program di bawah ini mencetak Jenis Pengembalian untuk beberapa metode tertentu dari suatu kelas yang disediakan sebagai input dalam metode utama program.  
     

    Jawa




    /*

    * Program Demonstrate how to apply getReturnType() method

    * of Method Class.

    */

    import java.lang.reflect.Method;

     

    public

    Method Name : setManyValues
    Return Type Details: void
    
    Method Name : getValue
    Return Type Details: java.lang.String
    
    Method Name : setValue
    Return Type Details: int
    0
    Method Name : setManyValues
    Return Type Details: void
    
    Method Name : getValue
    Return Type Details: java.lang.String
    
    Method Name : setValue
    Return Type Details: int
    1

     

    Method Name : setManyValues
    Return Type Details: void
    
    Method Name : getValue
    Return Type Details: java.lang.String
    
    Method Name : setValue
    Return Type Details: int
    2
    Method Name : setManyValues
    Return Type Details: void
    
    Method Name : getValue
    Return Type Details: java.lang.String
    
    Method Name : setValue
    Return Type Details: int
    3

    Method Name : setManyValues
    Return Type Details: void
    
    Method Name : getValue
    Return Type Details: java.lang.String
    
    Method Name : setValue
    Return Type Details: int
    2public
    Method Name : setManyValues
    Return Type Details: void
    
    Method Name : getValue
    Return Type Details: java.lang.String
    
    Method Name : setValue
    Return Type Details: int
    6
    Method Name : setManyValues
    Return Type Details: void
    
    Method Name : getValue
    Return Type Details: java.lang.String
    
    Method Name : setValue
    Return Type Details: int
    7
    Method Name : setManyValues
    Return Type Details: void
    
    Method Name : getValue
    Return Type Details: java.lang.String
    
    Method Name : setValue
    Return Type Details: int
    8

    Method Name : setManyValues
    Return Type Details: void
    
    Method Name : getValue
    Return Type Details: java.lang.String
    
    Method Name : setValue
    Return Type Details: int
    2
    Method Name : method3
    Return Type Details: void
    
    Method Name : method2
    Return Type Details: java.lang.String
    
    Method Name : method1
    Return Type Details: int
    
    Method Name : main
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : equals
    Return Type Details: boolean
    
    Method Name : toString
    Return Type Details: java.lang.String
    
    Method Name : hashCode
    Return Type Details: int
    
    Method Name : getClass
    Return Type Details: java.lang.Class
    
    Method Name : notify
    Return Type Details: void
    
    Method Name : notifyAll
    Return Type Details: void
    0

    ________12______1

    Method Name : method3
    Return Type Details: void
    
    Method Name : method2
    Return Type Details: java.lang.String
    
    Method Name : method1
    Return Type Details: int
    
    Method Name : main
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : equals
    Return Type Details: boolean
    
    Method Name : toString
    Return Type Details: java.lang.String
    
    Method Name : hashCode
    Return Type Details: int
    
    Method Name : getClass
    Return Type Details: java.lang.Class
    
    Method Name : notify
    Return Type Details: void
    
    Method Name : notifyAll
    Return Type Details: void
    2
    Method Name : method3
    Return Type Details: void
    
    Method Name : method2
    Return Type Details: java.lang.String
    
    Method Name : method1
    Return Type Details: int
    
    Method Name : main
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : equals
    Return Type Details: boolean
    
    Method Name : toString
    Return Type Details: java.lang.String
    
    Method Name : hashCode
    Return Type Details: int
    
    Method Name : getClass
    Return Type Details: java.lang.Class
    
    Method Name : notify
    Return Type Details: void
    
    Method Name : notifyAll
    Return Type Details: void
    0

    Method Name : method3
    Return Type Details: void
    
    Method Name : method2
    Return Type Details: java.lang.String
    
    Method Name : method1
    Return Type Details: int
    
    Method Name : main
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : equals
    Return Type Details: boolean
    
    Method Name : toString
    Return Type Details: java.lang.String
    
    Method Name : hashCode
    Return Type Details: int
    
    Method Name : getClass
    Return Type Details: java.lang.Class
    
    Method Name : notify
    Return Type Details: void
    
    Method Name : notifyAll
    Return Type Details: void
    4
    Method Name : method3
    Return Type Details: void
    
    Method Name : method2
    Return Type Details: java.lang.String
    
    Method Name : method1
    Return Type Details: int
    
    Method Name : main
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : equals
    Return Type Details: boolean
    
    Method Name : toString
    Return Type Details: java.lang.String
    
    Method Name : hashCode
    Return Type Details: int
    
    Method Name : getClass
    Return Type Details: java.lang.Class
    
    Method Name : notify
    Return Type Details: void
    
    Method Name : notifyAll
    Return Type Details: void
    5

    Method Name : method3
    Return Type Details: void
    
    Method Name : method2
    Return Type Details: java.lang.String
    
    Method Name : method1
    Return Type Details: int
    
    Method Name : main
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : equals
    Return Type Details: boolean
    
    Method Name : toString
    Return Type Details: java.lang.String
    
    Method Name : hashCode
    Return Type Details: int
    
    Method Name : getClass
    Return Type Details: java.lang.Class
    
    Method Name : notify
    Return Type Details: void
    
    Method Name : notifyAll
    Return Type Details: void
    4
    Method Name : method3
    Return Type Details: void
    
    Method Name : method2
    Return Type Details: java.lang.String
    
    Method Name : method1
    Return Type Details: int
    
    Method Name : main
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : equals
    Return Type Details: boolean
    
    Method Name : toString
    Return Type Details: java.lang.String
    
    Method Name : hashCode
    Return Type Details: int
    
    Method Name : getClass
    Return Type Details: java.lang.Class
    
    Method Name : notify
    Return Type Details: void
    
    Method Name : notifyAll
    Return Type Details: void
    7
    Method Name : setManyValues
    Return Type Details: void
    
    Method Name : getValue
    Return Type Details: java.lang.String
    
    Method Name : setValue
    Return Type Details: int
    0
    Method Name : method3
    Return Type Details: void
    
    Method Name : method2
    Return Type Details: java.lang.String
    
    Method Name : method1
    Return Type Details: int
    
    Method Name : main
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : equals
    Return Type Details: boolean
    
    Method Name : toString
    Return Type Details: java.lang.String
    
    Method Name : hashCode
    Return Type Details: int
    
    Method Name : getClass
    Return Type Details: java.lang.Class
    
    Method Name : notify
    Return Type Details: void
    
    Method Name : notifyAll
    Return Type Details: void
    9

     

    Method Name : method3
    Return Type Details: void
    
    Method Name : method2
    Return Type Details: java.lang.String
    
    Method Name : method1
    Return Type Details: int
    
    Method Name : main
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : equals
    Return Type Details: boolean
    
    Method Name : toString
    Return Type Details: java.lang.String
    
    Method Name : hashCode
    Return Type Details: int
    
    Method Name : getClass
    Return Type Details: java.lang.Class
    
    Method Name : notify
    Return Type Details: void
    
    Method Name : notifyAll
    Return Type Details: void
    4/*1

    Method Name : method3
    Return Type Details: void
    
    Method Name : method2
    Return Type Details: java.lang.String
    
    Method Name : method1
    Return Type Details: int
    
    Method Name : main
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : equals
    Return Type Details: boolean
    
    Method Name : toString
    Return Type Details: java.lang.String
    
    Method Name : hashCode
    Return Type Details: int
    
    Method Name : getClass
    Return Type Details: java.lang.Class
    
    Method Name : notify
    Return Type Details: void
    
    Method Name : notifyAll
    Return Type Details: void
    4/*3

     

    Method Name : method3
    Return Type Details: void
    
    Method Name : method2
    Return Type Details: java.lang.String
    
    Method Name : method1
    Return Type Details: int
    
    Method Name : main
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : equals
    Return Type Details: boolean
    
    Method Name : toString
    Return Type Details: java.lang.String
    
    Method Name : hashCode
    Return Type Details: int
    
    Method Name : getClass
    Return Type Details: java.lang.Class
    
    Method Name : notify
    Return Type Details: void
    
    Method Name : notifyAll
    Return Type Details: void
    4/*5

    Method Name : method3
    Return Type Details: void
    
    Method Name : method2
    Return Type Details: java.lang.String
    
    Method Name : method1
    Return Type Details: int
    
    Method Name : main
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : equals
    Return Type Details: boolean
    
    Method Name : toString
    Return Type Details: java.lang.String
    
    Method Name : hashCode
    Return Type Details: int
    
    Method Name : getClass
    Return Type Details: java.lang.Class
    
    Method Name : notify
    Return Type Details: void
    
    Method Name : notifyAll
    Return Type Details: void
    4/*7 /*8

     

    ________145

    Method Name : setManyValues
    Return Type Details: void
    
    Method Name : getValue
    Return Type Details: java.lang.String
    
    Method Name : setValue
    Return Type Details: int
    _146_______0

    ________145

    Method Name : setManyValues
    Return Type Details: void
    
    Method Name : getValue
    Return Type Details: java.lang.String
    
    Method Name : setValue
    Return Type Details: int
    _146_______2

    /*9* Program Demonstrate how to apply getReturnType() method4 * Program Demonstrate how to apply getReturnType() method5* Program Demonstrate how to apply getReturnType() method6* Program Demonstrate how to apply getReturnType() method7

    * Program Demonstrate how to apply getReturnType() method8* Program Demonstrate how to apply getReturnType() method9* of Method Class.0* Program Demonstrate how to apply getReturnType() method7

    * Program Demonstrate how to apply getReturnType() method8* Program Demonstrate how to apply getReturnType() method9* of Method Class.4* of Method Class.5

    * Program Demonstrate how to apply getReturnType() method8* of Method Class.7

    ________146

    Method Name : setManyValues
    Return Type Details: void
    
    Method Name : getValue
    Return Type Details: java.lang.String
    
    Method Name : setValue
    Return Type Details: int
    _147_______9

     

    ________146

    Method Name : setManyValues
    Return Type Details: void
    
    Method Name : getValue
    Return Type Details: java.lang.String
    
    Method Name : setValue
    Return Type Details: int
    _148_______1

    * Program Demonstrate how to apply getReturnType() method8*/3*/4

    */5*/6

     

    * Program Demonstrate how to apply getReturnType() method8*/3*/9 import0

    ________145

    Method Name : setManyValues
    Return Type Details: void
    
    Method Name : getValue
    Return Type Details: java.lang.String
    
    Method Name : setValue
    Return Type Details: int
    _149_______2

    Method Name : method3
    Return Type Details: void
    
    Method Name : method2
    Return Type Details: java.lang.String
    
    Method Name : method1
    Return Type Details: int
    
    Method Name : main
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : equals
    Return Type Details: boolean
    
    Method Name : toString
    Return Type Details: java.lang.String
    
    Method Name : hashCode
    Return Type Details: int
    
    Method Name : getClass
    Return Type Details: java.lang.Class
    
    Method Name : notify
    Return Type Details: void
    
    Method Name : notifyAll
    Return Type Details: void
    4import2

    Method Name : method3
    Return Type Details: void
    
    Method Name : method2
    Return Type Details: java.lang.String
    
    Method Name : method1
    Return Type Details: int
    
    Method Name : main
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : equals
    Return Type Details: boolean
    
    Method Name : toString
    Return Type Details: java.lang.String
    
    Method Name : hashCode
    Return Type Details: int
    
    Method Name : getClass
    Return Type Details: java.lang.Class
    
    Method Name : notify
    Return Type Details: void
    
    Method Name : notifyAll
    Return Type Details: void
    1import2

    Method Name : method3
    Return Type Details: void
    
    Method Name : method2
    Return Type Details: java.lang.String
    
    Method Name : method1
    Return Type Details: int
    
    Method Name : main
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : equals
    Return Type Details: boolean
    
    Method Name : toString
    Return Type Details: java.lang.String
    
    Method Name : hashCode
    Return Type Details: int
    
    Method Name : getClass
    Return Type Details: java.lang.Class
    
    Method Name : notify
    Return Type Details: void
    
    Method Name : notifyAll
    Return Type Details: void
    1import8 import9

    Method Name : method3
    Return Type Details: void
    
    Method Name : method2
    Return Type Details: java.lang.String
    
    Method Name : method1
    Return Type Details: int
    
    Method Name : main
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : equals
    Return Type Details: boolean
    
    Method Name : toString
    Return Type Details: java.lang.String
    
    Method Name : hashCode
    Return Type Details: int
    
    Method Name : getClass
    Return Type Details: java.lang.Class
    
    Method Name : notify
    Return Type Details: void
    
    Method Name : notifyAll
    Return Type Details: void
    4java.lang.reflect.Method;1

    Method Name : method3
    Return Type Details: void
    
    Method Name : method2
    Return Type Details: java.lang.String
    
    Method Name : method1
    Return Type Details: int
    
    Method Name : main
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : equals
    Return Type Details: boolean
    
    Method Name : toString
    Return Type Details: java.lang.String
    
    Method Name : hashCode
    Return Type Details: int
    
    Method Name : getClass
    Return Type Details: java.lang.Class
    
    Method Name : notify
    Return Type Details: void
    
    Method Name : notifyAll
    Return Type Details: void
    1import2

    Method Name : setManyValues
    Return Type Details: void
    
    Method Name : getValue
    Return Type Details: java.lang.String
    
    Method Name : setValue
    Return Type Details: int
    2import2

    import_2

     

    java.lang.reflect.Method;_7

    Method Name : setManyValues
    Return Type Details: void
    
    Method Name : getValue
    Return Type Details: java.lang.String
    
    Method Name : setValue
    Return Type Details: int
    0 java.lang.reflect.Method;9

     

    Method Name : setManyValues
    Return Type Details: void
    
    Method Name : getValue
    Return Type Details: java.lang.String
    
    Method Name : setValue
    Return Type Details: int
    2public1

    Method Name : setManyValues
    Return Type Details: void
    
    Method Name : getValue
    Return Type Details: java.lang.String
    
    Method Name : setValue
    Return Type Details: int
    2public public4 public5

    Method Name : setManyValues
    Return Type Details: void
    
    Method Name : getValue
    Return Type Details: java.lang.String
    
    Method Name : setValue
    Return Type Details: int
    2
    Method Name : method3
    Return Type Details: void
    
    Method Name : method2
    Return Type Details: java.lang.String
    
    Method Name : method1
    Return Type Details: int
    
    Method Name : main
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : equals
    Return Type Details: boolean
    
    Method Name : toString
    Return Type Details: java.lang.String
    
    Method Name : hashCode
    Return Type Details: int
    
    Method Name : getClass
    Return Type Details: java.lang.Class
    
    Method Name : notify
    Return Type Details: void
    
    Method Name : notifyAll
    Return Type Details: void
    0

    ________12______1*/3* Program Demonstrate how to apply getReturnType() method6

    Method Name : setManyValues
    Return Type Details: void
    
    Method Name : getValue
    Return Type Details: java.lang.String
    
    Method Name : setValue
    Return Type Details: int
    01

    ________12______1

    Method Name : setManyValues
    Return Type Details: void
    
    Method Name : getValue
    Return Type Details: java.lang.String
    
    Method Name : setValue
    Return Type Details: int
    03
    Method Name : setManyValues
    Return Type Details: void
    
    Method Name : getValue
    Return Type Details: java.lang.String
    
    Method Name : setValue
    Return Type Details: int
    04
    Method Name : method3
    Return Type Details: void
    
    Method Name : method2
    Return Type Details: java.lang.String
    
    Method Name : method1
    Return Type Details: int
    
    Method Name : main
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : equals
    Return Type Details: boolean
    
    Method Name : toString
    Return Type Details: java.lang.String
    
    Method Name : hashCode
    Return Type Details: int
    
    Method Name : getClass
    Return Type Details: java.lang.Class
    
    Method Name : notify
    Return Type Details: void
    
    Method Name : notifyAll
    Return Type Details: void
    9

    Method Name : setManyValues
    Return Type Details: void
    
    Method Name : getValue
    Return Type Details: java.lang.String
    
    Method Name : setValue
    Return Type Details: int
    2import2

     

    Method Name : setManyValues
    Return Type Details: void
    
    Method Name : getValue
    Return Type Details: java.lang.String
    
    Method Name : setValue
    Return Type Details: int
    2
    Method Name : setManyValues
    Return Type Details: void
    
    Method Name : getValue
    Return Type Details: java.lang.String
    
    Method Name : setValue
    Return Type Details: int
    09

    Method Name : setManyValues
    Return Type Details: void
    
    Method Name : getValue
    Return Type Details: java.lang.String
    
    Method Name : setValue
    Return Type Details: int
    2public
    Method Name : setManyValues
    Return Type Details: void
    
    Method Name : getValue
    Return Type Details: java.lang.String
    
    Method Name : setValue
    Return Type Details: int
    12

    Method Name : setManyValues
    Return Type Details: void
    
    Method Name : getValue
    Return Type Details: java.lang.String
    
    Method Name : setValue
    Return Type Details: int
    2
    Method Name : method3
    Return Type Details: void
    
    Method Name : method2
    Return Type Details: java.lang.String
    
    Method Name : method1
    Return Type Details: int
    
    Method Name : main
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : equals
    Return Type Details: boolean
    
    Method Name : toString
    Return Type Details: java.lang.String
    
    Method Name : hashCode
    Return Type Details: int
    
    Method Name : getClass
    Return Type Details: java.lang.Class
    
    Method Name : notify
    Return Type Details: void
    
    Method Name : notifyAll
    Return Type Details: void
    0

    ________12______1*/3* of Method Class.0

    Method Name : setManyValues
    Return Type Details: void
    
    Method Name : getValue
    Return Type Details: java.lang.String
    
    Method Name : setValue
    Return Type Details: int
    01

    ________12______1

    Method Name : setManyValues
    Return Type Details: void
    
    Method Name : getValue
    Return Type Details: java.lang.String
    
    Method Name : setValue
    Return Type Details: int
    03 * of Method Class.0
    Method Name : method3
    Return Type Details: void
    
    Method Name : method2
    Return Type Details: java.lang.String
    
    Method Name : method1
    Return Type Details: int
    
    Method Name : main
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : equals
    Return Type Details: boolean
    
    Method Name : toString
    Return Type Details: java.lang.String
    
    Method Name : hashCode
    Return Type Details: int
    
    Method Name : getClass
    Return Type Details: java.lang.Class
    
    Method Name : notify
    Return Type Details: void
    
    Method Name : notifyAll
    Return Type Details: void
    9

    Method Name : setManyValues
    Return Type Details: void
    
    Method Name : getValue
    Return Type Details: java.lang.String
    
    Method Name : setValue
    Return Type Details: int
    2import2

     

    Method Name : setManyValues
    Return Type Details: void
    
    Method Name : getValue
    Return Type Details: java.lang.String
    
    Method Name : setValue
    Return Type Details: int
    2
    Method Name : setManyValues
    Return Type Details: void
    
    Method Name : getValue
    Return Type Details: java.lang.String
    
    Method Name : setValue
    Return Type Details: int
    26

    Method Name : setManyValues
    Return Type Details: void
    
    Method Name : getValue
    Return Type Details: java.lang.String
    
    Method Name : setValue
    Return Type Details: int
    2public
    Method Name : setManyValues
    Return Type Details: void
    
    Method Name : getValue
    Return Type Details: java.lang.String
    
    Method Name : setValue
    Return Type Details: int
    7
    Method Name : setManyValues
    Return Type Details: void
    
    Method Name : getValue
    Return Type Details: java.lang.String
    
    Method Name : setValue
    Return Type Details: int
    30public4
    Method Name : setManyValues
    Return Type Details: void
    
    Method Name : getValue
    Return Type Details: java.lang.String
    
    Method Name : setValue
    Return Type Details: int
    32

    Method Name : setManyValues
    Return Type Details: void
    
    Method Name : getValue
    Return Type Details: java.lang.String
    
    Method Name : setValue
    Return Type Details: int
    2
    Method Name : method3
    Return Type Details: void
    
    Method Name : method2
    Return Type Details: java.lang.String
    
    Method Name : method1
    Return Type Details: int
    
    Method Name : main
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : equals
    Return Type Details: boolean
    
    Method Name : toString
    Return Type Details: java.lang.String
    
    Method Name : hashCode
    Return Type Details: int
    
    Method Name : getClass
    Return Type Details: java.lang.Class
    
    Method Name : notify
    Return Type Details: void
    
    Method Name : notifyAll
    Return Type Details: void
    0

    ________12______1*/3* of Method Class.4

    Method Name : setManyValues
    Return Type Details: void
    
    Method Name : getValue
    Return Type Details: java.lang.String
    
    Method Name : setValue
    Return Type Details: int
    01

    Method Name : setManyValues
    Return Type Details: void
    
    Method Name : getValue
    Return Type Details: java.lang.String
    
    Method Name : setValue
    Return Type Details: int
    2import2

    import_2

    Keluaran.

    Method Name : setManyValues
    Return Type Details: void
    
    Method Name : getValue
    Return Type Details: java.lang.String
    
    Method Name : setValue
    Return Type Details: int

     

    Program 2. Program di bawah ini mencetak Jenis Pengembalian untuk semua metode kelas yang disediakan dalam metode utama program.  
     

    Jawa




    /*

    * Program Demonstrate how to apply getReturnType() method

    * of Method Class.

    */

    import java.lang.reflect.Method;

     

    public

    Method Name : setManyValues
    Return Type Details: void
    
    Method Name : getValue
    Return Type Details: java.lang.String
    
    Method Name : setValue
    Return Type Details: int
    0
    Method Name : setManyValues
    Return Type Details: void
    
    Method Name : getValue
    Return Type Details: java.lang.String
    
    Method Name : setValue
    Return Type Details: int
    1

     

    Method Name : setManyValues
    Return Type Details: void
    
    Method Name : getValue
    Return Type Details: java.lang.String
    
    Method Name : setValue
    Return Type Details: int
    2
    Method Name : setManyValues
    Return Type Details: void
    
    Method Name : getValue
    Return Type Details: java.lang.String
    
    Method Name : setValue
    Return Type Details: int
    3

    Method Name : setManyValues
    Return Type Details: void
    
    Method Name : getValue
    Return Type Details: java.lang.String
    
    Method Name : setValue
    Return Type Details: int
    2public
    Method Name : setManyValues
    Return Type Details: void
    
    Method Name : getValue
    Return Type Details: java.lang.String
    
    Method Name : setValue
    Return Type Details: int
    6
    Method Name : setManyValues
    Return Type Details: void
    
    Method Name : getValue
    Return Type Details: java.lang.String
    
    Method Name : setValue
    Return Type Details: int
    7
    Method Name : setManyValues
    Return Type Details: void
    
    Method Name : getValue
    Return Type Details: java.lang.String
    
    Method Name : setValue
    Return Type Details: int
    8

    Method Name : setManyValues
    Return Type Details: void
    
    Method Name : getValue
    Return Type Details: java.lang.String
    
    Method Name : setValue
    Return Type Details: int
    2
    Method Name : method3
    Return Type Details: void
    
    Method Name : method2
    Return Type Details: java.lang.String
    
    Method Name : method1
    Return Type Details: int
    
    Method Name : main
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : equals
    Return Type Details: boolean
    
    Method Name : toString
    Return Type Details: java.lang.String
    
    Method Name : hashCode
    Return Type Details: int
    
    Method Name : getClass
    Return Type Details: java.lang.Class
    
    Method Name : notify
    Return Type Details: void
    
    Method Name : notifyAll
    Return Type Details: void
    0

    ________12______1

    Method Name : method3
    Return Type Details: void
    
    Method Name : method2
    Return Type Details: java.lang.String
    
    Method Name : method1
    Return Type Details: int
    
    Method Name : main
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : equals
    Return Type Details: boolean
    
    Method Name : toString
    Return Type Details: java.lang.String
    
    Method Name : hashCode
    Return Type Details: int
    
    Method Name : getClass
    Return Type Details: java.lang.Class
    
    Method Name : notify
    Return Type Details: void
    
    Method Name : notifyAll
    Return Type Details: void
    2
    Method Name : method3
    Return Type Details: void
    
    Method Name : method2
    Return Type Details: java.lang.String
    
    Method Name : method1
    Return Type Details: int
    
    Method Name : main
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : equals
    Return Type Details: boolean
    
    Method Name : toString
    Return Type Details: java.lang.String
    
    Method Name : hashCode
    Return Type Details: int
    
    Method Name : getClass
    Return Type Details: java.lang.Class
    
    Method Name : notify
    Return Type Details: void
    
    Method Name : notifyAll
    Return Type Details: void
    0

    Method Name : method3
    Return Type Details: void
    
    Method Name : method2
    Return Type Details: java.lang.String
    
    Method Name : method1
    Return Type Details: int
    
    Method Name : main
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : equals
    Return Type Details: boolean
    
    Method Name : toString
    Return Type Details: java.lang.String
    
    Method Name : hashCode
    Return Type Details: int
    
    Method Name : getClass
    Return Type Details: java.lang.Class
    
    Method Name : notify
    Return Type Details: void
    
    Method Name : notifyAll
    Return Type Details: void
    4
    Method Name : method3
    Return Type Details: void
    
    Method Name : method2
    Return Type Details: java.lang.String
    
    Method Name : method1
    Return Type Details: int
    
    Method Name : main
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : equals
    Return Type Details: boolean
    
    Method Name : toString
    Return Type Details: java.lang.String
    
    Method Name : hashCode
    Return Type Details: int
    
    Method Name : getClass
    Return Type Details: java.lang.Class
    
    Method Name : notify
    Return Type Details: void
    
    Method Name : notifyAll
    Return Type Details: void
    5

    ________12______4

    Method Name : setManyValues
    Return Type Details: void
    
    Method Name : getValue
    Return Type Details: java.lang.String
    
    Method Name : setValue
    Return Type Details: int
    66
    Method Name : setManyValues
    Return Type Details: void
    
    Method Name : getValue
    Return Type Details: java.lang.String
    
    Method Name : setValue
    Return Type Details: int
    0
    Method Name : method3
    Return Type Details: void
    
    Method Name : method2
    Return Type Details: java.lang.String
    
    Method Name : method1
    Return Type Details: int
    
    Method Name : main
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : equals
    Return Type Details: boolean
    
    Method Name : toString
    Return Type Details: java.lang.String
    
    Method Name : hashCode
    Return Type Details: int
    
    Method Name : getClass
    Return Type Details: java.lang.Class
    
    Method Name : notify
    Return Type Details: void
    
    Method Name : notifyAll
    Return Type Details: void
    9

     

    Method Name : method3
    Return Type Details: void
    
    Method Name : method2
    Return Type Details: java.lang.String
    
    Method Name : method1
    Return Type Details: int
    
    Method Name : main
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : equals
    Return Type Details: boolean
    
    Method Name : toString
    Return Type Details: java.lang.String
    
    Method Name : hashCode
    Return Type Details: int
    
    Method Name : getClass
    Return Type Details: java.lang.Class
    
    Method Name : notify
    Return Type Details: void
    
    Method Name : notifyAll
    Return Type Details: void
    4/*1

    Method Name : method3
    Return Type Details: void
    
    Method Name : method2
    Return Type Details: java.lang.String
    
    Method Name : method1
    Return Type Details: int
    
    Method Name : main
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : equals
    Return Type Details: boolean
    
    Method Name : toString
    Return Type Details: java.lang.String
    
    Method Name : hashCode
    Return Type Details: int
    
    Method Name : getClass
    Return Type Details: java.lang.Class
    
    Method Name : notify
    Return Type Details: void
    
    Method Name : notifyAll
    Return Type Details: void
    4/*3

     

    Method Name : method3
    Return Type Details: void
    
    Method Name : method2
    Return Type Details: java.lang.String
    
    Method Name : method1
    Return Type Details: int
    
    Method Name : main
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : equals
    Return Type Details: boolean
    
    Method Name : toString
    Return Type Details: java.lang.String
    
    Method Name : hashCode
    Return Type Details: int
    
    Method Name : getClass
    Return Type Details: java.lang.Class
    
    Method Name : notify
    Return Type Details: void
    
    Method Name : notifyAll
    Return Type Details: void
    4/*5

    Method Name : method3
    Return Type Details: void
    
    Method Name : method2
    Return Type Details: java.lang.String
    
    Method Name : method1
    Return Type Details: int
    
    Method Name : main
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : equals
    Return Type Details: boolean
    
    Method Name : toString
    Return Type Details: java.lang.String
    
    Method Name : hashCode
    Return Type Details: int
    
    Method Name : getClass
    Return Type Details: java.lang.Class
    
    Method Name : notify
    Return Type Details: void
    
    Method Name : notifyAll
    Return Type Details: void
    4/*7 /*8

     

    /*_9

    Method Name : setManyValues
    Return Type Details: void
    
    Method Name : getValue
    Return Type Details: java.lang.String
    
    Method Name : setValue
    Return Type Details: int
    79

    ________145

    Method Name : setManyValues
    Return Type Details: void
    
    Method Name : getValue
    Return Type Details: java.lang.String
    
    Method Name : setValue
    Return Type Details: int
    _147_______9

     

    /*_9

    Method Name : setManyValues
    Return Type Details: void
    
    Method Name : getValue
    Return Type Details: java.lang.String
    
    Method Name : setValue
    Return Type Details: int
    83

    ________145

    Method Name : setManyValues
    Return Type Details: void
    
    Method Name : getValue
    Return Type Details: java.lang.String
    
    Method Name : setValue
    Return Type Details: int
    _148_______3*/4

    Method Name : setManyValues
    Return Type Details: void
    
    Method Name : getValue
    Return Type Details: java.lang.String
    
    Method Name : setValue
    Return Type Details: int
    87*/6

     

    ________145

    Method Name : setManyValues
    Return Type Details: void
    
    Method Name : getValue
    Return Type Details: java.lang.String
    
    Method Name : setValue
    Return Type Details: int
    _148_______3*/9 import0

    Method Name : method3
    Return Type Details: void
    
    Method Name : method2
    Return Type Details: java.lang.String
    
    Method Name : method1
    Return Type Details: int
    
    Method Name : main
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : equals
    Return Type Details: boolean
    
    Method Name : toString
    Return Type Details: java.lang.String
    
    Method Name : hashCode
    Return Type Details: int
    
    Method Name : getClass
    Return Type Details: java.lang.Class
    
    Method Name : notify
    Return Type Details: void
    
    Method Name : notifyAll
    Return Type Details: void
    4import2

    Method Name : method3
    Return Type Details: void
    
    Method Name : method2
    Return Type Details: java.lang.String
    
    Method Name : method1
    Return Type Details: int
    
    Method Name : main
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : equals
    Return Type Details: boolean
    
    Method Name : toString
    Return Type Details: java.lang.String
    
    Method Name : hashCode
    Return Type Details: int
    
    Method Name : getClass
    Return Type Details: java.lang.Class
    
    Method Name : notify
    Return Type Details: void
    
    Method Name : notifyAll
    Return Type Details: void
    1import2

    Method Name : method3
    Return Type Details: void
    
    Method Name : method2
    Return Type Details: java.lang.String
    
    Method Name : method1
    Return Type Details: int
    
    Method Name : main
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : equals
    Return Type Details: boolean
    
    Method Name : toString
    Return Type Details: java.lang.String
    
    Method Name : hashCode
    Return Type Details: int
    
    Method Name : getClass
    Return Type Details: java.lang.Class
    
    Method Name : notify
    Return Type Details: void
    
    Method Name : notifyAll
    Return Type Details: void
    1import8 import9

    Method Name : method3
    Return Type Details: void
    
    Method Name : method2
    Return Type Details: java.lang.String
    
    Method Name : method1
    Return Type Details: int
    
    Method Name : main
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : equals
    Return Type Details: boolean
    
    Method Name : toString
    Return Type Details: java.lang.String
    
    Method Name : hashCode
    Return Type Details: int
    
    Method Name : getClass
    Return Type Details: java.lang.Class
    
    Method Name : notify
    Return Type Details: void
    
    Method Name : notifyAll
    Return Type Details: void
    4java.lang.reflect.Method;1

    Method Name : method3
    Return Type Details: void
    
    Method Name : method2
    Return Type Details: java.lang.String
    
    Method Name : method1
    Return Type Details: int
    
    Method Name : main
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : equals
    Return Type Details: boolean
    
    Method Name : toString
    Return Type Details: java.lang.String
    
    Method Name : hashCode
    Return Type Details: int
    
    Method Name : getClass
    Return Type Details: java.lang.Class
    
    Method Name : notify
    Return Type Details: void
    
    Method Name : notifyAll
    Return Type Details: void
    1import2

    Method Name : setManyValues
    Return Type Details: void
    
    Method Name : getValue
    Return Type Details: java.lang.String
    
    Method Name : setValue
    Return Type Details: int
    2import2

    Method Name : setManyValues
    Return Type Details: void
    
    Method Name : getValue
    Return Type Details: java.lang.String
    
    Method Name : setValue
    Return Type Details: int
    2public1

    Method Name : setManyValues
    Return Type Details: void
    
    Method Name : getValue
    Return Type Details: java.lang.String
    
    Method Name : setValue
    Return Type Details: int
    2public public4
    Method Name : method3
    Return Type Details: void
    
    Method Name : method2
    Return Type Details: java.lang.String
    
    Method Name : method1
    Return Type Details: int
    
    Method Name : main
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : equals
    Return Type Details: boolean
    
    Method Name : toString
    Return Type Details: java.lang.String
    
    Method Name : hashCode
    Return Type Details: int
    
    Method Name : getClass
    Return Type Details: java.lang.Class
    
    Method Name : notify
    Return Type Details: void
    
    Method Name : notifyAll
    Return Type Details: void
    11

    Method Name : setManyValues
    Return Type Details: void
    
    Method Name : getValue
    Return Type Details: java.lang.String
    
    Method Name : setValue
    Return Type Details: int
    2
    Method Name : method3
    Return Type Details: void
    
    Method Name : method2
    Return Type Details: java.lang.String
    
    Method Name : method1
    Return Type Details: int
    
    Method Name : main
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : equals
    Return Type Details: boolean
    
    Method Name : toString
    Return Type Details: java.lang.String
    
    Method Name : hashCode
    Return Type Details: int
    
    Method Name : getClass
    Return Type Details: java.lang.Class
    
    Method Name : notify
    Return Type Details: void
    
    Method Name : notifyAll
    Return Type Details: void
    0

    Method Name : method3
    Return Type Details: void
    
    Method Name : method2
    Return Type Details: java.lang.String
    
    Method Name : method1
    Return Type Details: int
    
    Method Name : main
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : equals
    Return Type Details: boolean
    
    Method Name : toString
    Return Type Details: java.lang.String
    
    Method Name : hashCode
    Return Type Details: int
    
    Method Name : getClass
    Return Type Details: java.lang.Class
    
    Method Name : notify
    Return Type Details: void
    
    Method Name : notifyAll
    Return Type Details: void
    1*/3
    Method Name : method3
    Return Type Details: void
    
    Method Name : method2
    Return Type Details: java.lang.String
    
    Method Name : method1
    Return Type Details: int
    
    Method Name : main
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : equals
    Return Type Details: boolean
    
    Method Name : toString
    Return Type Details: java.lang.String
    
    Method Name : hashCode
    Return Type Details: int
    
    Method Name : getClass
    Return Type Details: java.lang.Class
    
    Method Name : notify
    Return Type Details: void
    
    Method Name : notifyAll
    Return Type Details: void
    16
    Method Name : setManyValues
    Return Type Details: void
    
    Method Name : getValue
    Return Type Details: java.lang.String
    
    Method Name : setValue
    Return Type Details: int
    01

    ________12______1

    Method Name : setManyValues
    Return Type Details: void
    
    Method Name : getValue
    Return Type Details: java.lang.String
    
    Method Name : setValue
    Return Type Details: int
    03
    Method Name : setManyValues
    Return Type Details: void
    
    Method Name : getValue
    Return Type Details: java.lang.String
    
    Method Name : setValue
    Return Type Details: int
    04
    Method Name : method3
    Return Type Details: void
    
    Method Name : method2
    Return Type Details: java.lang.String
    
    Method Name : method1
    Return Type Details: int
    
    Method Name : main
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : equals
    Return Type Details: boolean
    
    Method Name : toString
    Return Type Details: java.lang.String
    
    Method Name : hashCode
    Return Type Details: int
    
    Method Name : getClass
    Return Type Details: java.lang.Class
    
    Method Name : notify
    Return Type Details: void
    
    Method Name : notifyAll
    Return Type Details: void
    9

    Method Name : setManyValues
    Return Type Details: void
    
    Method Name : getValue
    Return Type Details: java.lang.String
    
    Method Name : setValue
    Return Type Details: int
    2import2

     

    Method Name : setManyValues
    Return Type Details: void
    
    Method Name : getValue
    Return Type Details: java.lang.String
    
    Method Name : setValue
    Return Type Details: int
    2
    Method Name : setManyValues
    Return Type Details: void
    
    Method Name : getValue
    Return Type Details: java.lang.String
    
    Method Name : setValue
    Return Type Details: int
    09

    Method Name : setManyValues
    Return Type Details: void
    
    Method Name : getValue
    Return Type Details: java.lang.String
    
    Method Name : setValue
    Return Type Details: int
    2public
    Method Name : method3
    Return Type Details: void
    
    Method Name : method2
    Return Type Details: java.lang.String
    
    Method Name : method1
    Return Type Details: int
    
    Method Name : main
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : equals
    Return Type Details: boolean
    
    Method Name : toString
    Return Type Details: java.lang.String
    
    Method Name : hashCode
    Return Type Details: int
    
    Method Name : getClass
    Return Type Details: java.lang.Class
    
    Method Name : notify
    Return Type Details: void
    
    Method Name : notifyAll
    Return Type Details: void
    28

    Method Name : setManyValues
    Return Type Details: void
    
    Method Name : getValue
    Return Type Details: java.lang.String
    
    Method Name : setValue
    Return Type Details: int
    2
    Method Name : method3
    Return Type Details: void
    
    Method Name : method2
    Return Type Details: java.lang.String
    
    Method Name : method1
    Return Type Details: int
    
    Method Name : main
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : equals
    Return Type Details: boolean
    
    Method Name : toString
    Return Type Details: java.lang.String
    
    Method Name : hashCode
    Return Type Details: int
    
    Method Name : getClass
    Return Type Details: java.lang.Class
    
    Method Name : notify
    Return Type Details: void
    
    Method Name : notifyAll
    Return Type Details: void
    0

    ________12______1*/3

    Method Name : method3
    Return Type Details: void
    
    Method Name : method2
    Return Type Details: java.lang.String
    
    Method Name : method1
    Return Type Details: int
    
    Method Name : main
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : equals
    Return Type Details: boolean
    
    Method Name : toString
    Return Type Details: java.lang.String
    
    Method Name : hashCode
    Return Type Details: int
    
    Method Name : getClass
    Return Type Details: java.lang.Class
    
    Method Name : notify
    Return Type Details: void
    
    Method Name : notifyAll
    Return Type Details: void
    33
    Method Name : setManyValues
    Return Type Details: void
    
    Method Name : getValue
    Return Type Details: java.lang.String
    
    Method Name : setValue
    Return Type Details: int
    01

    ________12______1

    Method Name : setManyValues
    Return Type Details: void
    
    Method Name : getValue
    Return Type Details: java.lang.String
    
    Method Name : setValue
    Return Type Details: int
    03
    Method Name : method3
    Return Type Details: void
    
    Method Name : method2
    Return Type Details: java.lang.String
    
    Method Name : method1
    Return Type Details: int
    
    Method Name : main
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : equals
    Return Type Details: boolean
    
    Method Name : toString
    Return Type Details: java.lang.String
    
    Method Name : hashCode
    Return Type Details: int
    
    Method Name : getClass
    Return Type Details: java.lang.Class
    
    Method Name : notify
    Return Type Details: void
    
    Method Name : notifyAll
    Return Type Details: void
    37
    Method Name : method3
    Return Type Details: void
    
    Method Name : method2
    Return Type Details: java.lang.String
    
    Method Name : method1
    Return Type Details: int
    
    Method Name : main
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : equals
    Return Type Details: boolean
    
    Method Name : toString
    Return Type Details: java.lang.String
    
    Method Name : hashCode
    Return Type Details: int
    
    Method Name : getClass
    Return Type Details: java.lang.Class
    
    Method Name : notify
    Return Type Details: void
    
    Method Name : notifyAll
    Return Type Details: void
    9

    Method Name : setManyValues
    Return Type Details: void
    
    Method Name : getValue
    Return Type Details: java.lang.String
    
    Method Name : setValue
    Return Type Details: int
    2import2

     

    Method Name : setManyValues
    Return Type Details: void
    
    Method Name : getValue
    Return Type Details: java.lang.String
    
    Method Name : setValue
    Return Type Details: int
    2
    Method Name : setManyValues
    Return Type Details: void
    
    Method Name : getValue
    Return Type Details: java.lang.String
    
    Method Name : setValue
    Return Type Details: int
    26

    Method Name : setManyValues
    Return Type Details: void
    
    Method Name : getValue
    Return Type Details: java.lang.String
    
    Method Name : setValue
    Return Type Details: int
    2public
    Method Name : setManyValues
    Return Type Details: void
    
    Method Name : getValue
    Return Type Details: java.lang.String
    
    Method Name : setValue
    Return Type Details: int
    7
    Method Name : method3
    Return Type Details: void
    
    Method Name : method2
    Return Type Details: java.lang.String
    
    Method Name : method1
    Return Type Details: int
    
    Method Name : main
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : equals
    Return Type Details: boolean
    
    Method Name : toString
    Return Type Details: java.lang.String
    
    Method Name : hashCode
    Return Type Details: int
    
    Method Name : getClass
    Return Type Details: java.lang.Class
    
    Method Name : notify
    Return Type Details: void
    
    Method Name : notifyAll
    Return Type Details: void
    46public4
    Method Name : setManyValues
    Return Type Details: void
    
    Method Name : getValue
    Return Type Details: java.lang.String
    
    Method Name : setValue
    Return Type Details: int
    32

    Method Name : setManyValues
    Return Type Details: void
    
    Method Name : getValue
    Return Type Details: java.lang.String
    
    Method Name : setValue
    Return Type Details: int
    2
    Method Name : method3
    Return Type Details: void
    
    Method Name : method2
    Return Type Details: java.lang.String
    
    Method Name : method1
    Return Type Details: int
    
    Method Name : main
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : equals
    Return Type Details: boolean
    
    Method Name : toString
    Return Type Details: java.lang.String
    
    Method Name : hashCode
    Return Type Details: int
    
    Method Name : getClass
    Return Type Details: java.lang.Class
    
    Method Name : notify
    Return Type Details: void
    
    Method Name : notifyAll
    Return Type Details: void
    0

    ________12______1*/3

    Method Name : method3
    Return Type Details: void
    
    Method Name : method2
    Return Type Details: java.lang.String
    
    Method Name : method1
    Return Type Details: int
    
    Method Name : main
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : equals
    Return Type Details: boolean
    
    Method Name : toString
    Return Type Details: java.lang.String
    
    Method Name : hashCode
    Return Type Details: int
    
    Method Name : getClass
    Return Type Details: java.lang.Class
    
    Method Name : notify
    Return Type Details: void
    
    Method Name : notifyAll
    Return Type Details: void
    37
    Method Name : setManyValues
    Return Type Details: void
    
    Method Name : getValue
    Return Type Details: java.lang.String
    
    Method Name : setValue
    Return Type Details: int
    01

    Method Name : setManyValues
    Return Type Details: void
    
    Method Name : getValue
    Return Type Details: java.lang.String
    
    Method Name : setValue
    Return Type Details: int
    2import2

    import_2

    Keluaran.

    Method Name : method3
    Return Type Details: void
    
    Method Name : method2
    Return Type Details: java.lang.String
    
    Method Name : method1
    Return Type Details: int
    
    Method Name : main
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : wait
    Return Type Details: void
    
    Method Name : equals
    Return Type Details: boolean
    
    Method Name : toString
    Return Type Details: java.lang.String
    
    Method Name : hashCode
    Return Type Details: int
    
    Method Name : getClass
    Return Type Details: java.lang.Class
    
    Method Name : notify
    Return Type Details: void
    
    Method Name : notifyAll
    Return Type Details: void

     

    Penjelasan. Output dari program ini juga menampilkan hasil untuk objek metode selain metode yang didefinisikan dalam objek kelas seperti wait, equals, toString, hashCode, getClass, notify, notifyAll. Metode-metode ini diwarisi dari nama kelas super Object of java. paket lang lang berdasarkan objek kelas
    Referensi.  

     


    Catatan Pribadi Saya arrow_drop_up

    Menyimpan

    Silakan Login untuk berkomentar.