Sunday 4 June 2017

Java




The Number is part of the java.lang package
 


The Exception class has two main subclasses: IOException class and RuntimeException Class.
 

non-access modifiers in java
These are the modifiers which are used to achieve other functionalities like,
a) static : This modifier is used to specify whether a member is a class member or an instance member.
b) final : It is used to restrict the further modification of a class or a method or a field.
Interface
Abstract classes may contain both abstract methods as well as concrete methods. But interfaces must contain only abstract methods. Concrete methods are not allowed in interfaces. Therefore, Interfaces show 100% abstractness.
 



No comments:

Post a Comment