Javapedia.net
Java
Spring
Hibernate
DevOps
Testing
API
BigData
Web
Erlang
AI
Database
Integration
Cloud
Python
Scala
Tools
Golang
SAP
Login
Register
Submit a Question
Search Javapedia
Search
Javapedia updates
New software-engineering topics and practical interview questions.
Follow @javapediaNet
«
Prev
»
Next
Java /
Object, Class and Package
OOPS Concepts and its implementation in Java (19)
Inheritance (29)
JDK, JRE, JVM, JIT (69)
Java Identifiers (4)
Object, Class and Package (44)
Variable (9)
Instance Variables (Non Static Variables) (3)
Class Variables (Static Variables) (13)
Local Variables (6)
Package (10)
Operators (9)
Data types (10)
Methods (39)
Modifiers (29)
Control Statements (14)
Access Modifiers (5)
Constructor (38)
Interface (46)
Abstract Class (19)
Enum (20)
Arrays (20)
Strings (32)
Using String (29)
Exception (55)
Collections (56)
List and its implementations (22)
Set and its implementations (23)
Map and its implementations (39)
Queue and its implementations (4)
Regular expressions (3)
Design Patterns (75)
Generics (20)
Casting (5)
volatile (13)
Java ThreadLocal (10)
Java Multithreading (113)
Java Multithreading part II (18)
final keyword (13)
static keyword (16)
Java Transactions (JTA) (21)
Concurrent collections (55)
Java Serialization (36)
JDBC (53)
JNDI (17)
RMI (6)
JAXB (10)
JMS (45)
Servlet Interview Questions (16)
JMX (9)
log4j (19)
Annotations (10)
XML (14)
Garbage collection (31)
Programs (8)
JVM (4)
Java8 streams (34)
JavaFX (6)
Autosys Interview questions (21)
The Java Virtual Machine: How and What Is It Used For? (0)
Java 11 (10)
Java 12 (5)
Top Errors You Should Avoid when Studying Programming (0)
Java 17 (1)
JPMS (6)
Java Record Keyword (4)
MapStruct Java Interview questions (0)
Java 21 Interview Questions (46)
Lombok Interview questions (48)
Quarkus Interview questions (50)
Micronaut Interview questions (50)
Java Concurrency and Multi Threading in Java 17 and Java 21 Interview questions (50)
MapStruct Java Interview questions part 2 (50)
Java 17 Garbage Collection Interview Questions (50)
GraalVM Interview questions (50)
Java 21 Coding Standards Interview Questions (50)
Java 21 Virtual Threads Interview questions (50)
Java 21 Collection Framework features Interview questions (50)
JVM Architecture (Java21) Interview questions (50)
Can we have two classes with same name under the same package?
No.
More Related questions...
Can a Java source file have more than one class declaration?
Object Cloning.
How to implement cloning?
Example of a final class in Java API.
What is the data type of System.out?
Can we have two classes with same name under the same package?
Can we have class name same as the interface name under the same package?
What is the base class of all classes?
Could a Java class file exists even without filename and only extension(.java)?
Anonymous class.
Difference Between ClassNotFoundException & NoClassDefFoundError.
ClassNotFoundException Example.
Dynamic class loading.
Difference: Class.forName() vs ClassLoader.loadClass().
Which class implements clone method- Cloneable or Object in Java?
Why Custom ClassLoader is required in Java?
How does Java ClassLoader Work?
When are class static variables loaded in memory in Java?
Describe the principle of Java class loader.
When a class is loaded in Java?
When a class is initialized in Java?
What are the rules of class initialization in Java?
What is a Local class in Java?
Different type of cloning in Java.
Explain Shallow copy in Java.
Explain deep copy in Java.
Difference between shallow and deep copy in Java.
What is Serialization in Java?
Explain De-serialization in Java.
Difference between readObject and readResolve in Java serialization.
Why is Class.newInstance() is discouraged to use?
Difference between Static block and initializer block in Java.
What is static class in Java?
Role of Runtime and System class in Java.
Can an anonymous class have constructor?
What are the Object class methods?
Can you override Object class getClass method?
When shallow object copy is preferred?
How to implement equals method correctly?
Good implementation of hashCode method in Java.
Java equals() vs. compareTo() contract.
Can two objects which are not equal have the same hashCode?
What happens when equals() is not consistent with compareTo() method?
Difference between instanceof and getClass() method for checking type inside equals.
Show more question and Answers...
Variable
Comments & Discussions
Load comments
Please enable JavaScript to view the
comments powered by Disqus.
Search Javapedia
Search
OOPS Concepts and its implementation in Java
19
Inheritance
29
JDK, JRE, JVM, JIT
Java Identifiers
4
Object, Class and Package
44
Variable
9
Instance Variables (Non Static Variables)
3
Class Variables (Static Variables)
13
Local Variables
6
Package
10
Operators
9
Data types
10
Methods
39
Modifiers
29
Control Statements
14
Access Modifiers
5
Constructor
38
Interface
46
Abstract Class
19
Enum
20
Arrays
20
Strings
32
Using String
29
Exception
Collections
List and its implementations
22
Set and its implementations
23
Map and its implementations
39
Queue and its implementations
4
Regular expressions
3
Design Patterns
Generics
20
Casting
5
volatile
13
Java ThreadLocal
10
Java Multithreading
Java Multithreading part II
18
final keyword
13
static keyword
16
Java Transactions (JTA)
21
Concurrent collections
55
Java Serialization
36
JDBC
53
JNDI
17
RMI
6
JAXB
10
JMS
45
Servlet Interview Questions
16
JMX
9
log4j
19
Annotations
10
XML
14
Garbage collection
31
Programs
8
JVM
4
Java8 streams
34
JavaFX
6
Autosys Interview questions
21
The Java Virtual Machine: How and What Is It Used For?
Java 11
10
Java 12
5
Top Errors You Should Avoid when Studying Programming
Java 17
1
JPMS
6
Java Record Keyword
4
MapStruct Java Interview questions
Java 21 Interview Questions
46
Lombok Interview questions
48
Quarkus Interview questions
50
Micronaut Interview questions
50
Java Concurrency and Multi Threading in Java 17 and Java 21 Interview questions
50
MapStruct Java Interview questions part 2
50
Java 17 Garbage Collection Interview Questions
50
GraalVM Interview questions
50
Java 21 Coding Standards Interview Questions
50
Java 21 Virtual Threads Interview questions
Java 21 Collection Framework features Interview questions
50
JVM Architecture (Java21) Interview questions
50
Recently added questions
How does class loading follow the delegation model?
Why does the JVM use generational garbage collection?
What is bytecode in Java?
Why is the Metaspace stored in native memory instead of the heap?
What happens when a NoClassDefFoundError occurs versus ClassNotFoundException?
What is the difference between Young Generation and Old Generation in heap memory?
What are the main components of JVM architecture?
What is the JVM Stack?
What is the purpose of the Just-In-Time (JIT) compiler?
What is Metaspace, and how does it differ from PermGen?
Why do we use the parent delegation model in class loading?
What is the difference between Class.forName() and ClassLoader.loadClass()?
Explain the lifecycle of a class in JVM (loading, linking, initialization)?
Explain the internal working of the linking phase (verification, preparation, resolution)?
How does escape analysis enable stack allocation optimizations?
Explain the internal working of safepoints and why the JVM needs them?
What is the Class Loader subsystem in JVM?
What are the types of class loaders in JVM?
What is the purpose of the Java Native Interface (JNI)?
Explain the execution flow of a Minor GC vs Major GC?