You are on page 1of 2

Question 1. What are access modifiers and non-access modifiers in Java?

Access modifier: it is used to control the visiblity of a class or a variable or a method or a constructor.
Non_Access modifier: it is used to provide other functionalities. Like synchronizing(cause to occur or
operate at the same time) a method or block,restricting the serialization of a variable . etc.

Question 2. Write a program in Java using class operations, performing four basic arithmetic
operations. Use separate method for each operation. Create four objects in main method and
access the defined methods

Question 3. Write a Java program to find largest number using OOP concepts.
Question 4. Write a Java program to check whether a character is vowel or consonant.

You might also like