Contact Us
|
Contribute
|
Ask Question
|
login
Subscribe Us
91-9990449935
0120-4256464
Java
T
point
Home
Java
C
SQL
Android
PHP
HTML
CSS
XML
JavaScript
Ajax
Cloud
Python
Web Services
Quiz
Projects
Interview Q
Comment
Forum
Training
Content Menu ▼
1
2
3
4
5
6
7
8
9
10
Question 1
:
What will be the output?
1. public class Test6{
2. public Test6(){
3. this(4);
4. }
5. public Test6(byte var){
6. System.out.println(var);
7. }
8. public static void main(String[] args){
9. Test6 t6 = new Test6();
10. } }
1.
Compiles and Runs without error
2.
4
3.
4 4
4.
Compiler Error