Nested Classes in Java (Rules) 1. The inner class(non-static nested) has access to all of the outer class's members, including those...
Read More
Showing posts with label Core java logic building. Show all posts
Showing posts with label Core java logic building. Show all posts
wrapper classes in Java
Java wrapper classes 1. What's need of wrapper classes? ---1. to be able to add prim types to growable collection(growable data st...
Read More
String class API Java
String class API Important String class constructors 1.String(byte[] bytes) --- byte[] ----> String converter 2.String(char[] cha...
Read More
What does it mean for a subclass-outside-the-package to have access to a superclass (parent) protected member?
What does it mean for a subclass-outside-the-package to have access to a superclass (parent) protected member? It means the subclass inhe...
Read More
Java Interfaces Simplified
Java Interfaces Why we need Java Interfaces ? 1. As an alternative to multiple inheritance. 2. Allows complete loosely coupled archit...
Read More
Java Inheritance Simplified
Inheritance in Java: In OOP, we often organize classes in hierarchy to avoid duplication and reduce redundancy. The classes in the lower ...
Read More
CORE JAVA Point2D PROGRAM
Problem Statement: Create Java Application for the following . Create Point class Point2D in package "geom" : for representing a...
Read More
CORE JAVA 12 BASIC LOGIC BUILDING PROGRAMS FOR GETTING STARTED
listing 1 // Demonstrate the basic arithmetic operators. class BasicMath { public static void main(String args[]) { // arithmetic...
Read More
Subscribe to:
Posts (Atom)