this and super keywords
this keyword this represents the current instance of the class. Usage Mostly used inside the constructors or methods to eliminate[…]
Read moreAmplify your java knowledge with javagyansite
this keyword this represents the current instance of the class. Usage Mostly used inside the constructors or methods to eliminate[…]
Read moreHopefully you have gone through Java Constructors before coming here. As shared in Java Constructors, Java compiler adds super() implicitly as the first[…]
Read moreIn this article, we will explore Constructor in Java. We will learn about types of constructor in Java and discuss[…]
Read moreA variable can be accessed and used inside it’s designated scope. The scope of the variable is defined by the[…]
Read morebreak and continue keywords are used inside while and for loops. break is used to terminate the loop and break[…]
Read moreTernary operator is a combination of if and else in a single statement. Format booleanExpression ? expression1 : expression2 Example[…]
Read moreWhat is the use of Reflection? How do you get a Class object? How do you get information about the[…]
Read moreUsing new Operator Just like TestClass obj = new TestClass(); Using Reflection Get the Class object and call newInstance API.[…]
Read morePrepare for your OOPs Java interview Questions with our comprehensive list of interview questions and ace your interview. Commonly Asked[…]
Read moreBy default private fields, methods and constructors are not accessible but using java reflection API setAccessible(true) on the instance of[…]
Read more