Javarevisited

Learn Java, Programming, Spring, Hibernate throw tutorials, examples, and interview questions

Wednesday, July 9, 2025

5 Things Programmers Can Buy in Amazon Prime Day 2025 [Best Deals]

›
Hello guys, many of my friends and colleagues used to wait until November to buy books, gadgets, and other computer items to get the huge di...

Tomcat – java.lang.OutOfMemoryError: PermGen space Cause and Solution

›
Tomcat web serve r often suffers from java.lang.OutOfMemoryError: PermGen space whenever you deploy and un-deploy your web application a ...
19 comments:

How to fix java.lang.classcastexception cannot be cast to in Java - cause and solution

›
As name suggests ClassCastException in Java comes when we try to type cast an object and object is not of the type we are trying to cast ...
10 comments:

How to Fix java.lang.OutOfMemoryError: GC overhead limit exceeded ? Example Solution

›
The java.lang.OutOfMemoryError: GC overhead limit exceeded is another type of OutOfMemoryError in Java which comes when JVM spent too much...
2 comments:

What is Assertion in Java - Java Assertion Tutorial Example

›
Java Assertion or assert keyword in Java is a little unknown and not many programmers are familiar with this and it's been rarely us...
3 comments:

What is the use of java.lang.Class in Java? Example

›
java.lang.Class is one of the most important classes in java but mostly overlooked by Java developers. It is very useful in the sense that ...
10 comments:

Java Mistake 1 - Using float and double for monetary or financial calculation Example

›
Java is considered a very safe programming language compared to C and C++ as it doesn't have free() and malloc() to directly do memor...
19 comments:

Top 10 EJB Interview Question and Answer asked in Java J2EE Interviews

›
10 EJB Interview Questions and Answer from my collection of interview questions. I have been sharing interview questions on various topic...
6 comments:

How to get and set default Character encoding or Charset in Java? Example

›
D efault Character encoding in Java or charset is the character encoding used by JVM to convert bytes into String s or characters when y...
9 comments:
Monday, July 7, 2025

Difference between Class, Instance and Local variables in Java? Example

›
There are a lot of differences between instance variable, class variable, and local variable in Java, and knowing them will help you to wr...
8 comments:

What is the Use of Interface in Java and Object Oriented Programming? [Answer]

›
Many times, I have seen questions like why should we use an interface in Java? I f we can not define any concrete methods inside the interf...
3 comments:

5 Benefits of using interface in Java and Object Oriented Programming

›
Interface in Java is a simple concept but many programmers fail to realize their actual use, including me. When I started learni...

Difference between Abstraction and Encapsulation in Java? OOP Question Answer

›
Both Abstraction and Encapsulation are two of the four basic OOP concepts which allow you to model real-world things into objects so that...
20 comments:

Difference between Association, Composition and Aggregation in Java, UML and Object Oriented Programming

›
In Object-oriented programming, one object is related to another to use functionality and service provided by that object. This relationshi...
29 comments:

Why Default or No Argument Constructor is Important in Java Class? Answer

›
Almost all Java developers know that compiler adds a default constructor or better known as a no-argument constructor in every Java class, ...
6 comments:
›
Home
View web version

Contributors

  • SimpleJava
  • javin paul
Powered by Blogger.