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
Can we have two public classes in one java file? A - True B - False
Home
JAVA
Can we have two public classes in one java file? A - True B - False
+1
vote
asked
May 18, 2020
in
JAVA
by
AdilsonLima
Can we have two public classes in one java file?
A - True
B - False
#java
Java-questions-answers
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
May 18, 2020
by
AdilsonLima
Ans is B False
Your comment on this answer:
Email me at this address if a comment is added after mine:
Email me if a comment is added after mine
Privacy: Your email address will only be used for sending these notifications.
Related questions
0
votes
Q: Is an empty .java file a valid source file? A - True B - False
asked
May 18, 2020
in
JAVA
by
AdilsonLima
#java
Java-questions-answers
+1
vote
Q: Can we have multiple classes in same java file?
asked
May 18, 2020
in
JAVA
by
AdilsonLima
#java
Java-questions-answers
+1
vote
Q: Can we have multiple classes in single file ?
asked
Jun 17, 2019
in
JAVA
by
reins.robin
#java
#java-script
#java-interview
#java-question
#java-interview-question
Java-questions-answers
+1
vote
Q: Can we have more than one package statement in source file ?
asked
Jun 17, 2019
in
JAVA
by
reins.robin
#java
#java-script
#java-question
#java-interview-question
Java-questions-answers
+1
vote
Q: _jspService() method of HttpJspPage class should not be overridden. A - True B - False
asked
May 29, 2020
in
JAVA
by
Hodge
#jsp
#java
Java-questions-answers
0
votes
Q: Which of the following type of JDBC driver, talks with the server-side middleware that then talks to database? A - JDBC-ODBC Bridge plus ODBC driver B - Native-API, partly Java driver C - JDBC-Net, pure Java driver D - Native-protocol, pure Java driver
asked
May 21, 2020
in
JAVA
by
GeorgeBell
#java
Java-questions-answers
0
votes
Q: Why main() method is public, static and void in java ?
asked
Jun 16, 2019
in
JAVA
by
reins.robin
#java
#java-script
#java-interview
#java-question
#java-interview-question
Java-questions-answers
+1
vote
Q: Explain Java Coding Standards for classes or Java coding conventions for classes?
asked
Jun 17, 2019
in
JAVA
by
reins.robin
#java
#java-script
#java-interview
#java-question
#java-interview-question
Java-questions-answers
+1
vote
Q: Setting isThreadSafe false can lead to poor performance.
asked
May 29, 2020
in
JAVA
by
Hodge
#java
#jsp
Java-questions-answers
0
votes
Q: What is the size of float variable? A - 8 bit B - 16 bit C - 32 bit D - 64 bit
asked
May 18, 2020
in
JAVA
by
AdilsonLima
#java
Java-questions-answers
...