Collection Classes in Java

Collection Classes in Java Java provides a set of standard collection classes that implement Collection interfaces. Some of the classes provide full implementations that can be used as-is and others are abstract class, providing skeletal implementations that are used as starting points for creating concrete collections. The standard collection classes are summarized in the following […]

Java Arrays

Java Arrays Introduction: Program data is stored in the variables and takes the memory spaces, randomly. However, when we need the data of the same type to store in the contiguous memory allocations we use the data structures like arrays. To meet this feature java has provided an Array class which abstracts the array data-structure. […]

Java Guide

Java Guide Java Introduction Java Data Types Java Variables Java Arrays  Java Control Statements  Java Exception Handling  Oops concepts in Java Methods in java Regular Expressions in Java Java Fresher CV  Java Interview Questions  

Core Java Interview Questions -2

1. Can a class be declared as static? We can not declare top level class as static, but only inner class can be declared static. public class Test { static class InnerClass { public static void InnerMethod() { System.out.println(“Static Inner Class!”); } } public static void main(String args[]) { Test.InnerClass.InnerMethod(); } } //output: Static Inner […]

Core Java Interview Questions

Core Java Interview Questions -1 1. What is a JVM? JVM is Java Virtual Machine which is a run time environment for the compiled java class files. 2. Does Java support multiple inheritance? Java doesn’t support multiple inheritance. 3. What is the most important feature of Java? Java is a platform independent language. 4. What […]