Super Keyword in JAVA Super Keyword is a reference variable name that refers to the parent class object. Super means parent class. class A { int a=40; } class B extends A { int a=20; void show(int a) { System.out.println(a); // output will be 30 System.out.println(super.a); // output will be Continue reading
Java Programming
What is “This” keyword in java with example
This Keyword in JAVA To refer a object is called reference variable. “this” keyword is also a reference variable that refer to the current object. Class Test { int i; void SetValue(int i) { i=i; } void show() { System.out.println(i); } } class Demo { Continue reading
What is “Final” keyword in java with example
Final Keyword final keyword is used for method, variables and classes variable is constant class does not inherit if we create a final as a variable, it becomes constant, we cannot change the value of final. if we create any final method, we cannot override it. if we create a final class, it cannot extends Continue reading
Abstract class in java
Abstraction Abstraction Security Data Hiding Encapsulation Tightly coupled classes Inheritance Code Reusability Polymorphism Has a relationship using a abstract class (0% – 100%) to achive abstraction Using interface (100%) abstraction A method without body (no implementation ) is known as abstraction method A method must always be declared in an abstract Continue reading
difference between string buffer and string builder
Difference between String, String Buffer and String Builder String String Buffer String Builder Storage Heap area String constant pool Heap area Heap area objects Immutable object created (fixed size) Mutable objects created Mutable objects created memory If we change the value of string a lot of time it will allocate more memory Continue reading
Java OOPs Concept Quiz
Java oops Concepts Quiz
Objects and Classes
Java Programming , Objects and Classes quiz
Decision Makings Looping
Java Decision Makings Looping
Decision Makings and Branching
Decision Makings and Branching Quiz
Exception Handling
Java Exception Handling quiz