Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
JAVA Interview Questions and Answers
Home
Questions
JAVA
+2
votes
Q: How do you find if JVM is 32-bit or 64-bit from Java Program?
asked
Jan 24, 2020
in
JAVA
by
rahuljain1
#jvm-size
Java-questions-answers
+1
vote
Q: What is -XX:+UseCompressedOops JVM option? Why use it?
asked
Jan 24, 2020
in
JAVA
by
rahuljain1
#usecompressedoops
Java-questions-answers
+1
vote
Q: How do WeakHashMap works?
asked
Jan 24, 2020
in
JAVA
by
rahuljain1
#weakhashmap
Java-questions-answers
+1
vote
Q: A difference between WeakReference and SoftReference in Java?
asked
Jan 24, 2020
in
JAVA
by
rahuljain1
#weakreference
#softreference
Java-questions-answers
+1
vote
Q: What is the size of an int variable in 32-bit and 64-bit JVM?
asked
Jan 24, 2020
in
JAVA
by
rahuljain1
#jvm-size
Java-questions-answers
+1
vote
Q: What is The difference between Serial and Parallel Garbage Collector?
asked
Jan 24, 2020
in
JAVA
by
rahuljain1
#serial-vs-parallel-garbage
Java-questions-answers
+1
vote
Q: What is constructor chaining in Java?
asked
Jan 24, 2020
in
JAVA
by
rahuljain1
#java-constructor
Java-questions-answers
+1
vote
Q: Can we use String in the switch case?
asked
Jan 24, 2020
in
JAVA
by
rahuljain1
#java-switch-case
Java-questions-answers
+2
votes
Q: Why is String Immutable in Java?
asked
Jan 24, 2020
in
JAVA
by
rahuljain1
#java-string
Java-questions-answers
+1
vote
Q: Which one will take more memory, an int or Integer?
asked
Jan 24, 2020
in
JAVA
by
rahuljain1
#java-memory
Java-questions-answers
+1
vote
Q: What will this return 3*0.1 == 0.3? true or false?
asked
Jan 24, 2020
in
JAVA
by
rahuljain1
#java-variable
Java-questions-answers
+1
vote
Q: Can I store a double value in a long variable without casting?
asked
Jan 24, 2020
in
JAVA
by
rahuljain1
#java-double-value
Java-questions-answers
+1
vote
Q: Difference between a = a + b and a += b ?
asked
Jan 24, 2020
in
JAVA
by
rahuljain1
#java-variable
Java-questions-answers
+1
vote
Q: Is ++ operator is thread-safe in Java?
asked
Jan 24, 2020
in
JAVA
by
rahuljain1
#java-safe-thread
Java-questions-answers
+1
vote
Q: Which class contains clone method? Cloneable or Object?
asked
Jan 24, 2020
in
JAVA
by
rahuljain1
#java-clone
#clone-method
Java-questions-answers
+1
vote
Q: Can we cast an int value into byte variable? what will happen if the value of int is larger than byte?
asked
Jan 24, 2020
in
JAVA
by
rahuljain1
#java-variable
Java-questions-answers
0
votes
Q: How do you convert bytes to String?
asked
Jan 24, 2020
in
JAVA
by
rahuljain1
#java-string
Java-questions-answers
0
votes
Q: What is the right data type to represent a price in Java?
asked
Jan 24, 2020
in
JAVA
by
rahuljain1
#java-data
Java-questions-answers
+1
vote
Q: Can we create an Immutable object, which contains a mutable object?
asked
Jan 24, 2020
in
JAVA
by
rahuljain1
#java-immutable
Java-questions-answers
+1
vote
Q: What is an immutable object? How do you create an Immutable object in Java?
asked
Jan 24, 2020
in
JAVA
by
rahuljain1
#java-immutable
Java-questions-answers
0
votes
Q: The difference between sleep and wait in Java?
asked
Jan 24, 2020
in
JAVA
by
rahuljain1
#java-wait
#java-sleep
Java-questions-answers
0
votes
Q: Write code for thread-safe Singleton in Java?
asked
Jan 24, 2020
in
JAVA
by
rahuljain1
#java-thread-safe
Java-questions-answers
0
votes
Q: Write wait-notify code for producer-consumer problem?
asked
Jan 24, 2020
in
JAVA
by
rahuljain1
#java-problem
Java-questions-answers
0
votes
Q: What is a thread local variable in Java?
asked
Jan 24, 2020
in
JAVA
by
rahuljain1
#java-local-variable
Java-questions-answers
0
votes
Q: is Swing thread-safe?
asked
Jan 24, 2020
in
JAVA
by
rahuljain1
#java-swing
Java-questions-answers
0
votes
Q: How do you take thread dump in Java?
asked
Jan 24, 2020
in
JAVA
by
rahuljain1
#java-thread
Java-questions-answers
0
votes
Q: What is busy spin? Why should you use it?
asked
Jan 24, 2020
in
JAVA
by
rahuljain1
#java-busy-spin
Java-questions-answers
0
votes
Q: What is false sharing in the context of multi-threading?
asked
Jan 24, 2020
in
JAVA
by
rahuljain1
#java-multi-threading
Java-questions-answers
0
votes
Q: How do you call wait() method? using if block or loop? Why?
asked
Jan 24, 2020
in
JAVA
by
rahuljain1
#java-wait
Java-questions-answers
0
votes
Q: Which one would be easy to write? synchronization code for 10 threads or 2 threads?
asked
Jan 24, 2020
in
JAVA
by
rahuljain1
#java-synchronization
Java-questions-answers
Page:
« prev
1
...
46
47
48
49
50
51
52
53
54
55
56
57
next »
...