This document outlines 20 questions for a Java assignment covering topics such as the differences between Java and C++, features of the Java language, default values of variables, object-oriented aspects of Java, pointers, static methods, platform independence, the main method, multiple main methods, calling constructors, array indexing, System.out.println(), memory leaks, JIT compilers, bytecode, and programming tasks involving a calculator, factorials, Fibonacci series, palindrome strings, and binary search.
This document outlines 20 questions for a Java assignment covering topics such as the differences between Java and C++, features of the Java language, default values of variables, object-oriented aspects of Java, pointers, static methods, platform independence, the main method, multiple main methods, calling constructors, array indexing, System.out.println(), memory leaks, JIT compilers, bytecode, and programming tasks involving a calculator, factorials, Fibonacci series, palindrome strings, and binary search.
This document outlines 20 questions for a Java assignment covering topics such as the differences between Java and C++, features of the Java language, default values of variables, object-oriented aspects of Java, pointers, static methods, platform independence, the main method, multiple main methods, calling constructors, array indexing, System.out.println(), memory leaks, JIT compilers, bytecode, and programming tasks involving a calculator, factorials, Fibonacci series, palindrome strings, and binary search.
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.