Javatpoint Logo
Javatpoint Logo

Java Method isBridge() Method

The isBridge() method of Method class returns true if this method is a bridge method; false otherwise.

Syntax

Parameter

No parameter is passed.

Returns

true if and only if this method is a bridge method as defined by the Java Language Specification.

Throw

Does not throw an exception.

Example 1

Test it Now

Output:

Bridge Methods  are
Method: compareTo

Example 2

Test it Now

Output:

equals = false
toString = false
hashCode = false
clone = false
compareTo = false
compareTo = true
readObject = false
writeObject = false
normalize = false
normalize = false
parse = false
after = false
before = false
from = false
getTime = false
setTime = false
getDate = false
UTC = false
convertToAbbr = false
getCalendarDate = false
getCalendarSystem = false
getCalendarSystem = false
getCalendarSystem = false
getDay = false
getHours = false
getJulianCalendar = false
getMillisOf = false
getMinutes = false
getMonth = false
getSeconds = false
getTimeImpl = false
getTimezoneOffset = false
getYear = false
setDate = false
setHours = false
setMinutes = false
setMonth = false
setSeconds = false
setYear = false
toGMTString = false
toInstant = false
toLocaleString = false
Next TopicisDefault() Method





Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA