![Trending Articles on Technical and Non Technical topics](/images/trending_categories.jpeg)
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Found 9326 Articles for Object Oriented Programming
![Giri Raju](https://www.tutorialspoint.com/assets/profiles/13536/profile/60_72105-1512540773.jpg)
2K+ Views
A static inner class is a nested class which is a static member of the outer class. It can be accessed without instantiating the outer class, using other static members. Just like static members, a static nested class does not have access to the instance variables and methods of the outer class. You can extend static inner class with another inner class. Example Live Demo public class SampleClass { static abstract class Test{ int num = 300; public abstract void display(); ... Read More
![Prabhas](https://www.tutorialspoint.com/assets/profiles/13554/profile/60_90506-1512543588.jpg)
180 Views
Javadocs is the documentation file for a particular library/project these documents provide information about the classes and methods of that library/project. Javadoc is a tool to generate documentation for a project. It will be found in the bin folder of the Java installation folder. Using this tool you can generate documentation for your Java code.
![seetha](https://www.tutorialspoint.com/assets/profiles/13549/profile/60_42938-1512640859.jpg)
7K+ Views
Java util package contains collection framework, collection classes, classes related to date and time, event model, internationalization, and miscellaneous utility classes. On importing this package, you can access all these classes and methods.Following table lists out the classes in the collection package.InterfacesDescriptionClassesCollectionCollection Interface represents a group of objects. It is a root interface of collection framework.Abstract CollectionSetIt is a dynamic group of unique elements. It does not store duplicate element.HashSetLinkedHashSetListThey are similar to sets with the only difference that they allow duplicate values in them.StackvectorArrayListLinkedListQueueIt is an arrangement of the type First-In-First-Out (FIFO).First element put in the queue is the ... Read More
![varma](https://www.tutorialspoint.com/assets/profiles/13568/profile/60_26300-1512638592.jpg)
187 Views
An inner class declared without a class name is known as an anonymous inner class. we declare and instantiate them at the same time. In general, they are used whenever you need to override the method of a class or an interface. Syntax AnonymousInner an_inner = new AnonymousInner() { public void my_method() { ........ ........ } }; Example Live Demo abstract class AnonymousInner { public abstract void mymethod(); } public class Outer_class { ... Read More
![usharani](https://www.tutorialspoint.com/assets/profiles/13564/profile/60_32161-1512638316.jpg)
10K+ Views
The final modifier for finalizing the implementations of classes, methods, and variables. We can declare a method as final, once you declare a method final it cannot be overridden. So, you cannot modify a final method from a sub class. The main intention of making a method final would be that the content of the method should not be changed by any outsider. Example public class FinalMethodExample { public final void display(){ System.out.println("Hello welcome to Tutorialspoint"); } public static void main(String args[]){ ... Read More
![vanithasree](https://www.tutorialspoint.com/assets/profiles/13547/profile/60_85216-1512542720.jpg)
974 Views
Java is not dependent on any specific operating system so Java applications cannot depend on the platform dependent native libraries, therefore, instead of those Java provides a set of dynamically loaded libraries that are common to modern operating systems.These libraries provide –Container classes and Regular Expressions.Interfaces for tasks that depend on the hardware of the OS such as network and file access.In case, the underlying platform does not support certain feature of Java then, these libraries surpass that specific feature if needed.
![Prabhas](https://www.tutorialspoint.com/assets/profiles/13554/profile/60_90506-1512543588.jpg)
1K+ Views
In Java, we can write a class within a method and this will be a local type. Like local variables, the scope of the inner class is restricted to the method.A method-local inner class can be instantiated only within the method where the inner class is defined. The following program shows how to use a method-local inner class.ExampleLive Demopublic class OuterClass { public void display(){ int num = 23; class Inner{ public void print() { System.out.println("This is method inner class "+num); ... Read More
![radhakrishna](https://www.tutorialspoint.com/assets/profiles/13544/profile/60_40618-1512640354.jpg)
2K+ Views
The Object class of the java.lang package is the root class in Java i.e. It is the super class of every user-defined/predefined class n Java. All objects, including arrays, implement the methods of this class. The reason for this is to have common functionalities such as synchronization, garbage collection, collection support, object cloning for all objects in Java. The class named Class of java.lang package provides a method named getSuperclass() this method returns the Class representing the superclass of the current Class. So, Create a sample concrete class and try to get the name of its super class using this ... Read More
![mkotla](https://www.tutorialspoint.com/assets/profiles/13540/profile/60_41073-1512640012.jpg)
6K+ Views
The full form of API is Application Programming Interface. It is a document which gives you the list of all the packages, classes, and interfaces, along with their fields and methods.Using these API’s, the programmer can know how to use the methods, fields, classes, interfaces provided by Java libraries.