You are on page 1of 1

JAVA ASSIGNMENT 1

1. What are the differences between C++ and Java?


2. List the features of the Java Programming language?
3. What is the default value stored in Local Variables?
4. Can Java be said to be the complete object-oriented programming
language
5. Can you implement pointers in a Java Program?
6. What happens when the main() isn't declared as static?
7. Why is Java a platform independent language?
8. Why is the main method static in Java?
9. What happens if there are multiple main methods inside one class in
Java?
10.Can you call a constructor of a class inside another constructor?
11.Why does the java array index start with 0?
12.Define System.out.println().
13.What is a Memory Leak? Discuss some common causes of it.
14.What is a JIT Compiler?
15.What is Byte code?
16.Write a Java program to perform basic Calculator operations.
17.Write a Java program to calculate a Factorial of a number.
18.Write a Java program to calculate Fibonacci Series up to n numbers.
19.Write a Java program to find out whether the given String is Palindrome
or not.
20.Write a Java program to implement a Binary Search Algorithm.

You might also like